#1   Report Post  
flow23
 
Posts: n/a
Default worksheet open

When I open the worksheet.. I want to execute few macros.. (name ... Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default worksheet open


Private Sub Workbook_Open()
GetData
NameSheet
Extra
'[etc.
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
When I open the worksheet.. I want to execute few macros.. (name ...

Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?



  #3   Report Post  
Widemonk
 
Posts: n/a
Default worksheet open

There isnt a worksheet_open function, only worksheet_activate etc.

Dont you mean workbook_open ??... a set of macros to run as soo as you open
the file as opposed to flitting back-and-forth between the various worksheet
tabs ???

"flow23" wrote:

When I open the worksheet.. I want to execute few macros.. (name ... Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?

  #4   Report Post  
flow23
 
Posts: n/a
Default worksheet open

Yes.. as soon as I open the excel file

"Widemonk" wrote:

There isnt a worksheet_open function, only worksheet_activate etc.

Dont you mean workbook_open ??... a set of macros to run as soo as you open
the file as opposed to flitting back-and-forth between the various worksheet
tabs ???

"flow23" wrote:

When I open the worksheet.. I want to execute few macros.. (name ... Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?

  #5   Report Post  
flow23
 
Posts: n/a
Default worksheet open

I tried it.. but when I test it.. opening the file.. its gives error. . and
opens the VBcode????

"Bob Phillips" wrote:


Private Sub Workbook_Open()
GetData
NameSheet
Extra
'[etc.
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
When I open the worksheet.. I want to execute few macros.. (name ...

Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?






  #6   Report Post  
Bob Phillips
 
Posts: n/a
Default worksheet open

Do those macros exist? Did you store it where I suggested?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
I tried it.. but when I test it.. opening the file.. its gives error. .

and
opens the VBcode????

"Bob Phillips" wrote:


Private Sub Workbook_Open()
GetData
NameSheet
Extra
'[etc.
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
When I open the worksheet.. I want to execute few macros.. (name ...

Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?






  #7   Report Post  
flow23
 
Posts: n/a
Default worksheet open

Yes.. the Macro does exisit..

the error message says....

" Expected variable or procedure.. not module"

"Bob Phillips" wrote:

Do those macros exist? Did you store it where I suggested?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
I tried it.. but when I test it.. opening the file.. its gives error. .

and
opens the VBcode????

"Bob Phillips" wrote:


Private Sub Workbook_Open()
GetData
NameSheet
Extra
'[etc.
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code



--

HTH

RP
(remove nothere from the email address if mailing direct)


"flow23" wrote in message
...
When I open the worksheet.. I want to execute few macros.. (name ...
Getdata
, namesheet ,extra)

what code do I tupe in the Worksheet_open?






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
open workbook on same worksheet Anthony Excel Discussion (Misc queries) 2 October 5th 05 06:42 PM
Worksheet Revision Date only once that day mikeburg Excel Discussion (Misc queries) 0 August 16th 05 12:39 AM
Microsoft Excel Viewer 2003 won't open Microsoft Excel Worksheet Graham Jones Excel Discussion (Misc queries) 1 May 13th 05 12:58 AM
Why does excel create a copy of the worksheet i open Renee Excel Discussion (Misc queries) 4 March 2nd 05 06:17 PM
how do i open Excel program without loading a new worksheet? mElissA Excel Discussion (Misc queries) 4 December 31st 04 01:56 AM


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