Reputation: 4789
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
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