Private Sub Workbook_Open()

fulltime

Registered User.
Local time
Today, 21:48
Joined
Mar 24, 2006
Messages
56
Hi all,

When i put my codes in the following sub, Private Sub Workbook_Open() , into my spreadsheet, the codes in this sub will be executed whenever this worksheet is loaded. However, I need to pass in an argument into this sub, isit possible to be done?

Thks
FT :)
 
Hi, fulltime,

if you mean the workbook it´s: yes. If you really mean the worksheet you should make good use of the Workbook_SheetActivate(ByVal Sh As Object) event.

What about an inputbox in the code?

Ciao,
Holger
 
HaHoBe said:
Hi, fulltime,

if you mean the workbook it´s: yes. If you really mean the worksheet you should make good use of the Workbook_SheetActivate(ByVal Sh As Object) event.

What about an inputbox in the code?

Ciao,
Holger

got it, thks :)
 

Users who are viewing this thread

Back
Top Bottom