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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Switch on Excel Macro Dialog from Access procedure

Status
Not open for further replies.

Binnit

Technical User
Apr 28, 2004
627
US
I have the following code in a form module
Code:
Set oApp = CreateObject("Excel.Application")
    oApp.workbooks.Open strDir

The workbook has macros within it and would normally open up with the dialog box asking for confirmation to enable them.

However, this code does not fire up the dialog and just opens the workbook without macros enabled

How can I build the dialog option in to this code?
I would imagine it to look something like:-

oApp.Application.MacroOptions = True


Happiness is...not getting what you want but wanting what you have already got
 
Maybe this will help you? I'm no expert, but it looks promising...
Good luck
NorthNone

"Character cannot be developed in ease and quiet. Only through experience of trial and suffering can the soul be strengthened, ambition inspired, and success achieved." - Helen Keller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top