View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.misc
punkyfire punkyfire is offline
external usenet poster
 
Posts: 8
Default How do I create a macro with a variable search feature?

I have 3 excel documents.
1 has single column with 20 rows containing unique numbers.
2nd has 8 columns with 936 rows
3rd is blank

I want to write a macro that will copy an individual number in the first
document, search for it in the 2nd document, copy the entire row holding that
number from the 2nd and paste it into the 3rd blank document and cursor down
one row. I then want it to go back to the 1st document cursor down one row
and end.

When I try to write the macro, it records the first number from the first
document within the macro, so it won't automatically search for the document
within the row I am in.

Any help would be appreciated.
--
--
Mary