Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I'm trying to add a command bar to excel. I have the following code in Sub Auto_Open() : tmpControl.Caption = "Workbook1" tmpControl.OnAction = "Workbook1.xls!RunMacro" tmpControl.Tag = "Workbook1" I'm wanting to change the tmpControl.OnAction to open the workboo "Workbook1". I know this is set up to run the macro "RunMacro", bu I'm not sure how to change it so when I click on the command bar, i will simply just open the workbook. Any help is greatly appreciated!! Thanks, DejaV -- DejaV ----------------------------------------------------------------------- DejaVu's Profile: http://www.excelforum.com/member.php...fo&userid=2262 View this thread: http://www.excelforum.com/showthread.php?threadid=37635 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding a Dos command in EXCEL | Excel Discussion (Misc queries) | |||
adding a command button to an excel cell? | Excel Discussion (Misc queries) | |||
Adding Code to an Existing Command Button with VBA | Excel Programming | |||
Adding a command button | Excel Programming | |||
OnAction command failure | Excel Programming |