Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default calling a macro from within a loop


Mervyn,

Use this

Call timesheetfeed

Next

End Sub

In this simple eaxample when x=10 the macro "timesheetfeed" runs. Processing
will retuen to the loop
"Mervyn Thomas" wrote in 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 a macro from Worksheet--Activate Fatz Excel Discussion (Misc queries) 3 March 5th 08 11:07 PM
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 macro in add-in. Clark B Excel Programming 1 July 24th 03 11:05 PM


All times are GMT +1. The time now is 11:29 PM.

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

About Us

"It's about Microsoft Excel"