Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Just to cover all the bases, is the workbook containing the macro
open? It must be. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Antonio" wrote in message ... Sorry, I have used Application.Run "myworkbook.xls!kill_max_min" I have also tried Dim otherworkbook As Workbook Set otherworkbook = Workbooks("myworkbook.xls") Application.Run "'" & otherworkbook.Name & "!kill_max_min" The run method does seem to pint to myworkbook.xls but cannot find the sub "Dave Peterson" wrote: What did you use? Antonio wrote: I have used I get: Run-time error '1004': The macro 'myworkbook.xls!kill_max_min' cannot be found. In myworkbook I have Public Sub kill_max_min() Application.OnTime runwhen, "max_min", , False End Sub What am I doing wrong? Thanks, Antonio "Don Guillett" wrote: try application.run otherworkbook.xls!mymacro -- Don Guillett SalesAid Software "Antonio" wrote in message ... How do I run a sub that is declared as public in a different open workbook (project)? Thanks, Antonio -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Stacked Bar graph | Excel Discussion (Misc queries) | |||
How to convert MS Project to MS Excel. I don't have MS Project. | Excel Discussion (Misc queries) | |||
Cannot save Project file as MS Access file | Excel Discussion (Misc queries) | |||
Missing library when running 98 project on 2003 | Excel Discussion (Misc queries) | |||
Subtotal of Subtotal displays Grand Total in wrong row | Excel Worksheet Functions |