Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

PowerTip: Troubleshoot a Word Automation Script

$
0
0

Summary: Learn to troubleshoot a Windows PowerShell script for Microsoft Word automation.

  I have been struggling with a Windows PowerShell script that automates Word. The problem is that every time I run the script I get an error saying the Word document is locked. What can I do?

   When you test or develop your Windows PowerShell script for Word automation, make sure that you quit the Word.Application object and that you close the Word document. Otherwise, the document will be locked. This is especially true if you set the Application.Visible property to $false.


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>