Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Can I run a macro on loading?

I want to run a macro to run VBA on loading the spreadsheet to, say,
bring up a splash screen and then force a save under a new name before
the user starts working with it.

I cannot find an 'on load' command or anything which might do this.

How can this be done?

Thanks
Brian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Can I run a macro on loading?

in the vb editor, click the thisworkbook in the project explorer and then select
workbook from the general dropdown and open from the declaration dropdown.

the code here will run when the workbook is opened

--


Gary


"Ashnook" <brian@atashnookcdtfreeservedotcodotuk wrote in message
. com...
I want to run a macro to run VBA on loading the spreadsheet to, say, bring up a
splash screen and then force a save under a new name before the user starts
working with it.

I cannot find an 'on load' command or anything which might do this.

How can this be done?

Thanks
Brian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can I run a macro on loading?


or you could call your macro: Sub Auto_open()


Ashnook Wrote:
I want to run a macro to run VBA on loading the spreadsheet to, say,
bring up a splash screen and then force a save under a new name before
the user starts working with it.

I cannot find an 'on load' command or anything which might do this.

How can this be done?

Thanks
Brian



--
kwiklearner
------------------------------------------------------------------------
kwiklearner's Profile: http://www.excelforum.com/member.php...o&userid=31909
View this thread: http://www.excelforum.com/showthread...hreadid=520323

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
Macro not finishing due to loading workbook David P. Excel Discussion (Misc queries) 7 October 14th 08 07:55 PM
Run Macro when loading addin Mary[_7_] Excel Programming 3 September 7th 04 11:17 PM
Excel XP Macro Loading Problem %P*Rr&^ Excel Programming 9 December 9th 03 09:12 AM
Excel XP Macro Loading Problem %P*Rr&^ Excel Programming 1 December 8th 03 08:32 AM
Excel XP Macro Loading Problem %P*Rr&^ Excel Programming 1 December 7th 03 11:52 PM


All times are GMT +1. The time now is 09:33 PM.

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

About Us

"It's about Microsoft Excel"