TrustyCoder
TrustyCoder

Reputation: 4789

disable macro when opening word documents using office interop apis

hi how to disable macros when opening documents using office interop apis. I am currently using office 2007.

thanks in advance

Upvotes: 1

Views: 3490

Answers (1)

Todd Main
Todd Main

Reputation: 29153

If you're automating using VB.NET, it's quite easy - see this thread for an example of DisableAutoMacros: How to open document that contains AutoOpen macro with PowerShell?. I was never able to figure out how to do this in C# though.

Upvotes: 3

Related Questions