I use this in Excel 2000.
It opens the workbooks and the macros can be run.
It bypasses the macro alert dialog.
Workbooks.Open Filename:= _
"C:\Documents and Settings\me\My Documents\Misc\ToDoList.xls"
--
steveB
Remove "AYN" from email to respond
wrote in message
oups.com...
I'm trying to open an Excel spread sheet from VB. The spread sheet
contains macro's.
I'm using code like
Dim ex As Excel.Application
Set ex = New Excel.Application
Dim wb As Excel.Workbook
Set wb = ex.Workbooks.Open(FilePath, 1)
The sheet opens OK but it doesn't ask if macro's should be allowed or
not. Without macro's the rest of my solution doesn't work.
Does anyway know how I can ensure this screen appears?