mike
mike

Reputation: 549

Word macros: is there an event that's fired when content (macros) is enabled?

When I open Word documents that contain macros, Word's default behavior is to post a Security Warning and present a button with the caption "Enable Contents."
My question is whether is a way to be notified (e.g. via an event) when the user clicks this Enable Content button.

I couldn't find anything like it in the Word DOM reference.

Upvotes: 0

Views: 804

Answers (1)

DontFretBrett
DontFretBrett

Reputation: 1165

There's no event that's fired off. You could have a thread that monitors the screen for that button and click it with API. You could enable all macros so it doesn't appear. See this article: http://office.microsoft.com/en-us/word-help/enable-or-disable-macros-in-office-files-HA010354316.aspx

Upvotes: 1

Related Questions