Run a sub or function on program start?

  • Thread starter Thread starter RASelkirk
  • Start date Start date
R

RASelkirk

I used to know how to do this, but that was a few years ago... What'
the trick to running a VBA sub whenever the workbook is opene
(startup), say for example:

Sub Runme()

msgbox "I'm running"

End Su
 
Hi
einther put your code in the workbook_open event of your workbook
module or name your sub auto_open()
 

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