Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Automatic Macros

In previous version of Excel, we can use sub autopen or sub autoexec, or
something like that~.
Now in Excel 2003 can we use the same sub? Or there is anyway to do it?

Thanks

--
Rui Santos
Portugal
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Automatic Macros

Sub AutoOpen() Still works, how ever there are a lot of event driven options
available in the current version of excel. Open the Editor, then double click
the "ThisWorkbook" item under the VBAProject(YourBook.xls) on the left side
of the screen. then above the code window there should be 2 comboboxex, in
the left one select "Workbook" in the right one there should be a list of all
the event triggers that you can use, select the one that's most appropriate
for what you want to do, probably Open.

HTH
--
Charles Chickering

"A good example is twice the value of good advice."


"rmcsantos" wrote:

In previous version of Excel, we can use sub autopen or sub autoexec, or
something like that~.
Now in Excel 2003 can we use the same sub? Or there is anyway to do it?

Thanks

--
Rui Santos
Portugal

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Automatic Macros

But use:
Sub Auto_Open()
(note the underscore)

rmcsantos wrote:

In previous version of Excel, we can use sub autopen or sub autoexec, or
something like that~.
Now in Excel 2003 can we use the same sub? Or there is anyway to do it?

Thanks

--
Rui Santos
Portugal


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Automatic Macros

Doh! Thanks, for catching my typo Dave.
--
Charles Chickering

"A good example is twice the value of good advice."


"Dave Peterson" wrote:

But use:
Sub Auto_Open()
(note the underscore)

rmcsantos wrote:

In previous version of Excel, we can use sub autopen or sub autoexec, or
something like that~.
Now in Excel 2003 can we use the same sub? Or there is anyway to do it?

Thanks

--
Rui Santos
Portugal


--

Dave Peterson

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
Automatic Macros David Fredrickson Excel Worksheet Functions 2 April 20th 09 05:50 PM
Automatic running of Macros praveen_khm[_28_] Excel Programming 2 February 20th 06 10:45 AM
Automatic Macros mbe4966 Excel Programming 1 August 19th 04 09:58 PM
Automatic Macros Diego[_2_] Excel Programming 4 November 7th 03 03:53 PM


All times are GMT +1. The time now is 04:15 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"