Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All
I have a macro that copies a sheet containing another macro to the ActiveWorkbook. I need to update the OnAction command of a shape to run the macro attached to the new sheet. I can get it working using absolute values, but need to change the workbook part to ActiveWorkbook -- but can't suss out the syntax. Here's the absolute line: ActiveSheet.Shapes("myShp").OnAction = _ "'my file name.xls'!TheNewMacroName" I need something like this: ActiveSheet.Shapes("myShp").OnAction = _ ActiveWorkbook.name!TheNewMacroName TIA Trevor Williams |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with macro syntax | Excel Discussion (Misc queries) | |||
Error When using ActiveWorkBook.SaveAs and EnableEvents in same macro | Excel Programming | |||
Macro for importing a fixed width text file into the activeworkbook | Excel Programming | |||
Need syntax for RUNning a Word macro with an argument, called from an Excel macro | Excel Programming | |||
Not apply macro to every worksheet in activeworkbook | Setting up and Configuration of Excel |