#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Find loop

On a sheet called orderdata i have values indexed by there order id this is
in a form of 10001 or 10002 etc. I need a way of going through each row with
the same order id as im displaying them on a invoice. An example of the data
on the sheet is

ID , Description, quantity

10001, An example, 2
10001, An example2, 3
10002,... etc

For each row i need to find out the row that the data is on so i can gain
the decription and quantity from the script.

Thanks for any help

Jamie


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Find loop

Trry this
Set c = MyRange.Find(Val
If Not c Is Nothing The
firstAddress = c.Addres
D
Set c = MyRange.FindNext(c
Rw=range(c.address).ro
Loop While Not c Is Nothing And c.Address < firstAddres
End I


----- Jamie wrote: ----

On a sheet called orderdata i have values indexed by there order id this i
in a form of 10001 or 10002 etc. I need a way of going through each row wit
the same order id as im displaying them on a invoice. An example of the dat
on the sheet i

ID , Description, quantit

10001, An example,
10001, An example2,
10002,... et

For each row i need to find out the row that the data is on so i can gai
the decription and quantity from the script

Thanks for any hel

Jami



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Find loop

Thanks that worked great


"chris" wrote in message
...
Trry this:
Set c = MyRange.Find(Val)
If Not c Is Nothing Then
firstAddress = c.Address
Do
Set c = MyRange.FindNext(c)
Rw=range(c.address).row
Loop While Not c Is Nothing And c.Address < firstAddress
End If


----- Jamie wrote: -----

On a sheet called orderdata i have values indexed by there order id

this is
in a form of 10001 or 10002 etc. I need a way of going through each

row with
the same order id as im displaying them on a invoice. An example of

the data
on the sheet is

ID , Description, quantity

10001, An example, 2
10001, An example2, 3
10002,... etc

For each row i need to find out the row that the data is on so i can

gain
the decription and quantity from the script.

Thanks for any help

Jamie





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
Loop or Find code ?? need help !! EBnLP01 Excel Worksheet Functions 4 October 29th 09 05:47 PM
Find loop doesn't loop JSnow Excel Discussion (Misc queries) 2 June 24th 09 08:28 PM
Find & loop in VBA Noemi Excel Discussion (Misc queries) 3 January 25th 06 03:39 AM
Find value loop not working Christiane[_6_] Excel Programming 3 April 6th 04 01:53 AM
How do you test to break out of a find loop? Henry Stock Excel Programming 4 February 26th 04 11:15 PM


All times are GMT +1. The time now is 05:08 AM.

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"