LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extended search macro


I have to populate several fields of an order log. The log will be in
Sheet-1.
The operator will use the order number to select the data for the log,
and the data will be contained in Sheet-2 and Sheet-3.

(The data in sheets 2 and 3 changes at least once a day, and it varies
in length. The operator generates this data with another program, and
then pastes it onto the XL sheets.)

An order can have several line items, each line item constitutes a
record, and each record contains the order number. More than one record
(line item) could have the same order number

Sheet-2, Column-A contains the order numbers, in no specific order.
Sheet-3, Column-L also contains the order numbers, in no specific
order.

The operator will enter the order number in Column A of Sheet-1, press
a “Button” (runs a macro).
The macro, using the order number in Sheet-1, Column-A, will select and
copy several cells from Sheet-1 and Sheet-2, and paste them on Sheet-1.

QUESTION:
How do I write the macro that will use the number in Column-A to search
through another sheet, locate the row with the same number in Column-A,
copy and paste cells, and continue searching for more occurrences of
the same number in Column-A until the rows with data are exhausted?

Thanks

Alex


--
Ingeniero1
------------------------------------------------------------------------
Ingeniero1's Profile: http://www.excelforum.com/member.php...fo&userid=4029
View this thread: http://www.excelforum.com/showthread...hreadid=532342

 
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
Extended IF Formula Barny New Users to Excel 4 April 1st 10 05:12 PM
extended y-axix John Charts and Charting in Excel 1 January 14th 08 02:48 PM
extended formulas izzyt1972 Excel Discussion (Misc queries) 3 April 12th 07 09:42 AM
extended List box Ken Williams New Users to Excel 7 November 11th 06 03:37 AM
Geo mean extended Stephen Excel Worksheet Functions 0 January 18th 05 03:03 PM


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