G
Guest
hi,
I have the following behind a form button:
Set obj = CreateObject("Excel.Application")
obj.Application.Visible = True
obj.Application.DisplayAlerts = False
obj.Workbooks.Open "S:\Risk Management\Operations - MIS\Month-end
Reports\Average Daily Delinquency\average_dq.xls"
When I open the spreadsheet manually, it asks me whether or not I want to
"enable macros". So I choose "enable macros".
However, when I open the spreadsheet using the above button, I am not
prompted as such, so I get a ton of #NAME? for each cell.
How can I simulate clicking "enable macros" using the form button, without
turning the warnings on before I open the spreadsheet?
Thanks in advance,
geebee
I have the following behind a form button:
Set obj = CreateObject("Excel.Application")
obj.Application.Visible = True
obj.Application.DisplayAlerts = False
obj.Workbooks.Open "S:\Risk Management\Operations - MIS\Month-end
Reports\Average Daily Delinquency\average_dq.xls"
When I open the spreadsheet manually, it asks me whether or not I want to
"enable macros". So I choose "enable macros".
However, when I open the spreadsheet using the above button, I am not
prompted as such, so I get a ton of #NAME? for each cell.
How can I simulate clicking "enable macros" using the form button, without
turning the warnings on before I open the spreadsheet?
Thanks in advance,
geebee