Home |
Search |
Today's Posts |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Run a macro automatically on workbook open
at the top menu beside File, there is an excel symbol, right click on that icon and select view codes, Now at the drop down menu where it says general, drop down the menu to select -workbook go to the next drop down menu and select -open beginning and ending code appears put your copy and paste your macro between these two lines of code for example purposes popy and paste this code in between those two lines Dim Msg As String Msg = "This is Dave's great WorkBook!!" MsgBox Msg it will end up looking like this Private Sub Workbook_Open() Dim Msg As String Msg = "This is Dave's great WorkBook!!" MsgBox Msg End Sub Once you have that right then practise butting in the code from your macro Dave -- davesexcel ------------------------------------------------------------------------ davesexcel's Profile: http://www.excelforum.com/member.php...o&userid=31708 View this thread: http://www.excelforum.com/showthread...hreadid=516505 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro giving errors at workbook open | Excel Discussion (Misc queries) | |||
Links only update when external workbook is open | Excel Worksheet Functions | |||
Macro to open print window and set to print entire workbook | Excel Discussion (Misc queries) | |||
Automatically execute a CTRL-ALT-F9 when I open a workbook | Excel Discussion (Misc queries) | |||
Issuing macro in workbook from separate workbook | Excel Discussion (Misc queries) |