Robert,
You need to palce your code in the Workbook _Open event. To do so:
* Right-click on a worksheet tab and select View Code
* When taken to the VB window, Locate object VBAProject(YourWorkbookName) in
the project explorer window on the left, and expand it if not already
expanded; double-click on This Workbook
* Locate the two drop-down boxes on top of the main window, and change the
one on the left from default (General) to Workbook; notice the two lines of
code that are automatically entered in the main window:
Private Sub Workbook_Open()
End Sub
Whatever code you put in between will be executed whenever you open the
workbook. You could either paste the code here, or leave it in the general
module where it currently is and just call it from here, like:
My_Macro_Name
HTH,
Nikos