Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Calling Macros from a list

I have a number of procedures in a module, however I would like to these to
be called from another module in a sequence determined by the contents of a
worksheet range.

So for example if the Range named ProcessList contained the following.......

Report1
Report2
Report3

my code would look like this........

with Range("ProcessList")
for ir = 1 to .rows.count
Call .rows(ir,1) <<<<< what do I put here
next ir
end with

What is the syntax to pass the value determined by the range row to the
procedure name?

TIA
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Calling Macros from a list

For each cell in Range("A1:A10"
Application.Run Thisworkbook.Name & "!" & cell.value
Next

--
Regards,
Tom Ogilvy

"Anonymous" <Nobody wrote in message ...
I have a number of procedures in a module, however I would like to these

to
be called from another module in a sequence determined by the contents of

a
worksheet range.

So for example if the Range named ProcessList contained the

following.......

Report1
Report2
Report3

my code would look like this........

with Range("ProcessList")
for ir = 1 to .rows.count
Call .rows(ir,1) <<<<< what do I put here
next ir
end with

What is the syntax to pass the value determined by the range row to the
procedure name?

TIA
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---


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 MACROS FROM A NEW WORKSHEET NSNR Excel Discussion (Misc queries) 4 February 1st 08 07:10 AM
calling macros from worksheet to another NSNR Excel Discussion (Misc queries) 3 October 27th 07 01:49 PM
Calling macros in another workbook Nick Wright Excel Worksheet Functions 1 January 12th 06 04:03 PM
Calling macros from another XL Workbook jamesa Excel Programming 1 October 2nd 03 03:06 PM
Calling macros in another spreadsheet skimmer333 Excel Programming 0 September 30th 03 01:43 AM


All times are GMT +1. The time now is 02:30 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"