Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling AutoFit using macro in XLCALL.h [email protected] Excel Discussion (Misc queries) 1 January 9th 08 03:46 PM
calling worksheet function from a macro Joe Farruggio Excel Worksheet Functions 3 November 20th 06 10:01 PM
calling macro in a formula rk0909 Excel Discussion (Misc queries) 2 March 14th 06 04:15 PM
calling a macro from within a loop Mike Hughes Excel Programming 0 July 30th 03 08:50 PM
Calling macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"