force a macro to execute

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear experts,
is there a way I can force users to enable macros when they open a certain
workbook, or at least provoke a warning message if they disable them?
Thanks!
Best regards,
 
Valeria,

No, there is no way to force enabling of macros. But...

Hide all the sheet in the workbook except for a single sheet with a warning
in large text that the workbook won't work unless macros are enabled, and
unhide the remaining sheets and hide the warning in an auto_open macro.

Robin Hammond
www.enhanceddatasystems.com
 
Valeria,

If you add a macro called Auto_Open, that runs when you open a workbook.

On the other point, the most common way of handling that is to have a
worksheet that puts up a message about disabling macros, and then hide all
other sheets. In your auto-open macro, hide this sheet and unhide the rest.
If they disable macros, they will see this sheet, if they don't, they will
not. Not foolproof, b ut a technique.
 
Thanks!
It works very well...
just for curiosity: searching the posts, I have also found as an option the
digital certificate, so that basically users will be prompted only once to
enable macros written by you.
With the premises that I do not know anything about this subject, is it
something you would also suggest?
Thanks!
Valeria
 
It's a possible solution if you think that your users will be prepared to
trust all your macros, and it can make life easier for you with your own
code. You need to look for SelfCert.exe from memory. It should be in your
office folder.

Alternatively, you can put your code in an add-in, and once the user has
elected to load the add-in the macro warning on that file won't be shown.

Robin Hammond
www.enhanceddatasystems.com
 
Hi,
I have looked for the SelfCert.exe file but I can;'t find it, neither in my
office folder, nor in my whole C drive. Is this normal? Do I need to import
it from somewhere?
Thanks!
Valeria
 
Hi,
I am running Excel 2002 under Windows XP. I have re-run the installation
process to find the SelfCert.exe file, but anywhere I look I can't find it,
even as explained on the microsoft link in the "add/remove" programs...
Thanks
Valeria
 
Hi Tom,
this has really made the difference, it works now, thank you very much!
Kind regards,
Valeria
 

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