Open burrinhoMAC opened 2 years ago
This works! But it creates an extra blank word document. Try modifying the ps1 script like this :
Start-Sleep -Seconds .1
[System.Windows.Forms.SendKeys]::SendWait("^({c})")
[void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms')
start winword
Start-Sleep -Seconds 1
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
Start-Sleep -Seconds 1
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}^({v})")
Create a new file in Microsoft Word 2021
Excellent. I will test it. Thanks
Create a new file in Microsoft Word 2021
Microsoft-Word.zip