Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Running a macro/code when Excel starts.. 1

Status
Not open for further replies.

simmantix

Nuclear
Apr 30, 2003
31
Dear all,

I wish to run a piece of VBA code every time Excel starts..

E.g. - objExcel()_OnStart

CODE

I know this is the incorrect syntax/form/etc, anyone got any better ideas?? All I want to do is delete some values and formatting every time the program comes up..

Thanks

 
Replies continue below

Recommended for you

Put these lines on the "ThisWorkbook" code sheet (not as a module):

Private Sub Workbook_Open()
CODE
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor