Is there a way to run a Macro when the workbook is opened?
Is there a way to run a Macro when the workbook is opened?
Last edited by lloydgodin; 04-18-2012 at 01:16 PM. Reason: spelling error
Yes, in the VBE you have the code editor. If it is for this workbook, select This Workbook in the project explorer Ctrl+R. Then you can see at the top you have General, select Workbook in the drop down and from there you can select (on the right side, declarations) the open(When opening a workbook) or activate(when activating a workbook).
Or just copy the code below
But keep in mind that the macro's have to be enabled
Please Login or Register to view this content.
Please Login or Register to view this content.
Last edited by Buster^; 04-18-2012 at 01:37 PM.
Thank you. Worked great.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks