Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Execute procedure on startup

I would like to automatically run a procedure from within Excel upon start
I know that if I put the .xls file into the the subdirectory XLStart tha
Excel will pull up the spreadsheet automatically, but then how do I the
automatically execute a designated procedure? Thanks for any help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Execute procedure on startup

Richard

call the macro Auto_Start (in a general module) or use the Worksheet_Open
event (in the WorksheetClass Module)

Private Sub Workbook_Open()
:
End Sub


Regards

Trevor


"Richard" wrote in message
...
I would like to automatically run a procedure from within Excel upon

start.
I know that if I put the .xls file into the the subdirectory XLStart that
Excel will pull up the spreadsheet automatically, but then how do I then
automatically execute a designated procedure? Thanks for any help.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default Execute procedure on startup

Apologies ... one or two senior moments there !

Gord has provided the correct options

Auto_Open

or Workbook_Open in the ThisWorkbook module


"Trevor Shuttleworth" wrote in message
...
Richard

call the macro Auto_Start (in a general module) or use the Worksheet_Open
event (in the WorksheetClass Module)

Private Sub Workbook_Open()
:
End Sub


Regards

Trevor


"Richard" wrote in message
...
I would like to automatically run a procedure from within Excel upon

start.
I know that if I put the .xls file into the the subdirectory XLStart

that
Excel will pull up the spreadsheet automatically, but then how do I then
automatically execute a designated procedure? Thanks for any help.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Execute procedure on startup

Richard

In ThisWorkbook module.......

Private Sub Workbook_Open()
'your code here
End Sub

In a General module.......

Sub Auto_Open()
'your code here
End Sub

Gord Dibben Excel MVP

On Mon, 1 Mar 2004 13:56:05 -0800, "Richard"
wrote:

I would like to automatically run a procedure from within Excel upon start.
I know that if I put the .xls file into the the subdirectory XLStart that
Excel will pull up the spreadsheet automatically, but then how do I then
automatically execute a designated procedure? Thanks for any help.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Execute procedure on startup

Thanks to both of you.


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
Stop a Procedure from another procedure Ayo Excel Discussion (Misc queries) 1 October 30th 08 01:42 AM
execute stored procedure from excel maxzsim Excel Worksheet Functions 3 May 11th 05 04:58 PM
Could not execute Gary Excel Worksheet Functions 1 December 20th 04 06:20 PM
Execute stored procedure using DAO sapta wijaya Excel Programming 0 September 29th 03 04:24 AM


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