Accessing an Excel file which has macros

  • Thread starter Thread starter jamesp
  • Start date Start date
J

jamesp

I have written some code which opens another file which has macros and
extracts data. I don't need to run any macros in this other file. Is there
a way of turning off the button to run macros when the other file opens up?
Also I'm doing this in 2003 at the mo but is there any difference with 2007?

Many thanks

James
 
I have written some code which opens another file which has macros and
extracts data.  I don't need to run any macros in this other file.  Is there
a way of turning off the button to run macros when the other file opens up?  

Which button are you referring to? Is this a button that you have
placed in a sheet, or the menu item under Tools and it's counterpart
in the Toolbar. If it's the later, your best bet is to simply remove
the Macro Toolbar from the machines where this might be run.

Maury
 
It comes up when you try to open the file and before it opens you get the
'Security warning' dialog box with 'Macros may contain viruses...' and then
the user has to click on either the 'Disable macros' or 'Enable Macros'
button to open.

Programically, i don't want to see this dialog box.

Does this make sense?

Thanks

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top