Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel "Disable Macros; Enable Macros; More Info" prompt

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am writing an Access application using VBA, after this line of code run, [Set xlobject = GetObject("C:\ExcelFiles\FileWithMacros.xls"], Excel "Disable Macros; Enable Macros; More Info" prompt come up (on top of the Access form). I'd like very much to enable this macro automatically without having to click on "Enable Macros". Or if somehow I can get the focus on that "Disable Macros; Enable Macros; More Info" prompt so that I can control it.

If you have some ideas on how to solve this problem, please let me know asap, I'd really appreciate it. -junior47-
 
Suspect that you will have to manually set the Macro security settings to LOW in Excel. Am not sure that you can disable the macro dialogs programmatically because a virus would then be able to circumvent it, which would of course make them a pointless exercise. If anyone else knows of a way round this I would be interested to hear as I run across this all the time.

Hope this provides some help.

Asjeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top