Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Macro

Status
Not open for further replies.

zizis

Programmer
Joined
May 30, 2003
Messages
3
Location
GR
How can i open a macro automatical when i open a workbook
with Excel?
 
Either use the Workbook open event in the ThisWorkbook module
Private Sub Workbook_Open()
myMacro
End Sub

or use a macro called Auto_Open in a normal code module
Private Sub Auto_Open()
myMacro
End Sub

Regards
Ken..............
 
While in Excel click Visual Basic Editor, then Click Visual Basic help. You can read the basic of VBA. It is where I started.

Good luck...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top