Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
calling a macro from within a loop
Change your statement to...
Application.Run wbTemp.xls!timesheetFeed -----Original Message----- I have a sub that loops through a series of files whuch are given the name "wbtemp" which is an xls file. After various processing I then want to call a macro called "timesheetfeed" contained in this file. I am trying to do this by this line of code with variations on using "" etc: Application.Run wbTemp!timesheetFeed I get a runtime error 438 which is "object doesnt support this method..." can anyone suggest what to do? . |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
calling a macro from within a loop
OOpps .... don't forget the quotes...
Application.Run "wbTemp.xls!timesheetFeed" LOL -----Original Message----- Change your statement to... Application.Run wbTemp.xls!timesheetFeed -----Original Message----- I have a sub that loops through a series of files whuch are given the name "wbtemp" which is an xls file. After various processing I then want to call a macro called "timesheetfeed" contained in this file. I am trying to do this by this line of code with variations on using "" etc: Application.Run wbTemp!timesheetFeed I get a runtime error 438 which is "object doesnt support this method..." can anyone suggest what to do? . . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calling AutoFit using macro in XLCALL.h | Excel Discussion (Misc queries) | |||
calling worksheet function from a macro | Excel Worksheet Functions | |||
calling macro in a formula | Excel Discussion (Misc queries) | |||
calling a macro from within a loop | Excel Programming | |||
Calling macro in add-in. | Excel Programming |