I have the following code in a form module
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
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