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

Hi,

I would like to run a macro in loop using a list already prepared in Excel.
How can I program it?

Regards,

Sébastien
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Run aloop using a list

You can use the For Loop. Let's say your list is in column Z from Z12 to Z20
and you want to process the list - Output them:

Sub do_list()
Dim r As Range
Set r = Range("Z12:Z20")
For Each rr In r
MsgBox (rr.Value)
Next
End Sub
--
Gary''s Student - gsnu200719


"answer33" wrote:

Hi,

I would like to run a macro in loop using a list already prepared in Excel.
How can I program it?

Regards,

Sébastien

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Run aloop using a list

Thank's for your help,

Sebastien

"Gary''s Student" wrote:

You can use the For Loop. Let's say your list is in column Z from Z12 to Z20
and you want to process the list - Output them:

Sub do_list()
Dim r As Range
Set r = Range("Z12:Z20")
For Each rr In r
MsgBox (rr.Value)
Next
End Sub
--
Gary''s Student - gsnu200719


"answer33" wrote:

Hi,

I would like to run a macro in loop using a list already prepared in Excel.
How can I program it?

Regards,

Sébastien

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Run aloop using a list

You are welcome.
Submit another post if you need more assistance.
--
Gary''s Student - gsnu200719


"answer33" wrote:

Thank's for your help,

Sebastien

"Gary''s Student" wrote:

You can use the For Loop. Let's say your list is in column Z from Z12 to Z20
and you want to process the list - Output them:

Sub do_list()
Dim r As Range
Set r = Range("Z12:Z20")
For Each rr In r
MsgBox (rr.Value)
Next
End Sub
--
Gary''s Student - gsnu200719


"answer33" wrote:

Hi,

I would like to run a macro in loop using a list already prepared in Excel.
How can I program it?

Regards,

Sébastien

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
Comparing List A to List B and add what's missing from List B Gilbert Excel Discussion (Misc queries) 1 July 20th 09 08:41 PM
create new list from list A, but with exclusions from a list B Harold Good Excel Worksheet Functions 3 April 11th 08 11:23 PM
validation list--list depends on the selection of first list Michael New Users to Excel 2 April 27th 06 10:23 PM
list 1 has 400 names List 2 has 4000. find manes from list 1 on 2 Ed Excel Worksheet Functions 5 September 12th 05 09:48 AM
find names on list 1 in list 2. list 1 4000 names list 2 400 name Ed Excel Worksheet Functions 1 September 4th 05 12:48 AM


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