View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] f1capsicum@hotmail.com is offline
external usenet poster
 
Posts: 1
Default Asking users to Enable Macro's

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?