How or where do I invoke a macro when I open a spreadsheet.
N Norman Jones Jan 10, 2005 #3 Hi Duncan, In the workbook's ThisWorkbook Module, insert a Sub workbook_open() 'Your code End Sub macro. To access this module, right-click the Excel icon to the left of "File" on th menu bar, select "View Code". Alternatively, in a general module, insert a Sub Autpen 'Your Code End Sub macro. If you are unfamiliar with macros, see David McRitchie's Getting Started with Macros and User Defined Functions notes at: http://www.mvps.org/dmcritchie/excel/getstarted.htm
Hi Duncan, In the workbook's ThisWorkbook Module, insert a Sub workbook_open() 'Your code End Sub macro. To access this module, right-click the Excel icon to the left of "File" on th menu bar, select "View Code". Alternatively, in a general module, insert a Sub Autpen 'Your Code End Sub macro. If you are unfamiliar with macros, see David McRitchie's Getting Started with Macros and User Defined Functions notes at: http://www.mvps.org/dmcritchie/excel/getstarted.htm
B Bob Phillips Jan 10, 2005 #4 Norman Jones said: To access this module, right-click the Excel icon to the left of "File" on th menu bar, select "View Code". Click to expand... This is true if you have your spreadsheet maximized, but if you don't as in my case, the icon is at the top-left of the spreadsheet, not by the File menu.
Norman Jones said: To access this module, right-click the Excel icon to the left of "File" on th menu bar, select "View Code". Click to expand... This is true if you have your spreadsheet maximized, but if you don't as in my case, the icon is at the top-left of the spreadsheet, not by the File menu.