Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2005, 05:26 AM
Authorized User
 
Join Date: Sep 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default start on load

hi again,

could someone help me out with some syntax?

i want to write a sub, which starts as soon as the spreadsheet opens... but I don't know how to do that. is there like an onLoad function, cos I can't find that anywhere..

thanks

Patrick

Visit my site: http://www.drybonesuk.com
__________________
Visit my site: http://www.drybonesuk.com
 
Old October 6th, 2005, 05:29 AM
Authorized User
 
Join Date: Feb 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Patrick,

Goto the VB Editor. Here double-click on ThisWorkbook (which can be found in the Project Explorer --View>Project Explorer).
A blank field will show up at the right. From the left pulldown menu, select Workbook. You will now see that the blank field consists of the following lines:

Private Sub Workbook_Open()

End Sub

Between these lines you put your code which you want to run during startup.

Hope this helps

Max

 
Old October 6th, 2005, 05:46 AM
Authorized User
 
Join Date: Sep 2003
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thats brilliant thanks, just what i was after.

thanks again

Patrick

Visit my site: http://www.drybonesuk.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
don't know where to start timbal25 Access VBA 1 October 18th, 2007 02:17 PM
start.com david_ste BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 March 27th, 2006 06:22 AM
Prestwood load balancer unable 2 start service. amitjoshipune ASP.NET 1.0 and 1.1 Professional 0 February 8th, 2006 02:34 AM
How to auto load(on start) a form in access 2000? method Access 1 June 17th, 2005 10:55 PM
How to load the Quick Start Tutorials in VS.NET rgates59 ASP.NET 1.0 and 1.1 Basics 0 June 16th, 2003 09:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.