Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Run a sub or function on program start?


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

--
RASelkir
-----------------------------------------------------------------------
RASelkirk's Profile: http://www.excelforum.com/member.php...fo&userid=1621
View this thread: http://www.excelforum.com/showthread.php?threadid=27804

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Run a sub or function on program start?

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

--
Regards
Frank Kabel
Frankfurt, Germany


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

Sub Runme()

msgbox "I'm running"

End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default Run a sub or function on program start?

Sub auto_open()
Call MyProgram
End Sub

Glen

"RASelkirk" wrote in message
...

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

Sub Runme()

msgbox "I'm running"

End Sub


--
RASelkirk
------------------------------------------------------------------------
RASelkirk's Profile:
http://www.excelforum.com/member.php...o&userid=16216
View this thread: http://www.excelforum.com/showthread...hreadid=278044



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I start a new excel program for each opened excel file? Amos Setting up and Configuration of Excel 6 April 3rd 09 02:49 PM
"Excel could not start the e-mail program" in Excel _2003_ Maury Markowitz[_2_] Excel Discussion (Misc queries) 1 February 17th 09 05:40 PM
Excel could not start the e-mail program Russ Excel Discussion (Misc queries) 0 December 19th 07 02:39 AM
How do I start an excel program when widows starts delete automatically Excel Discussion (Misc queries) 6 December 31st 06 02:53 PM
program a function key John Sheakley Excel Programming 1 September 30th 03 02:31 AM


All times are GMT +1. The time now is 01:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"