disable macro when opening word documents using office interop apis
hi how to disable macros when opening documents using office interop apis. I a开发者_开发问答m currently using office 2007.
thanks in advance
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.
精彩评论