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: 12
Default Find instances of value in another sheet, copy row and highlight cells

I have what I think is a bit of a unique situation here.

I have one sheet with many columns (ShtOrig). I have a second sheet with
just one column, with hundreds of different values. For every value in the
2nd sheet, I need to cycle through all cells in the first sheet, and if that
value is found, copy the row of that value, paste it underneath the value in
the 2nd sheet, and highlight the cell that contains the found value (fill it
with a certain color, let's say Red, whatever the hex value for that is).
All values are text strings

So, if ShtOrig has these rows:

A B C D E
1 Pete Larry October Fire Pete
2 Sunday Tom Salad Dragon Pete
3 Dragon Fire Cindy Game Pick
4 Luck Drink Pete Gone Crazy


And my second sheet has this:

A
1 Pete
2 Fire
3 Game

Then after running the code, in the second sheet I'd have this:

A B C D E
1 Pete
2 Pete Larry October Fire Pete (cells A2
and E2 would be highlighted)
3 Sunday Tom Salad Dragon Pete (cell E 3
would be highlighted)
4 Luck Drink Pete Gone Crazy (cell C4
would be highlighted)
5 Fire
6 Pete Larry October Fire Drink (cell D6
would be highlighted)
7 Dragon Fire Cindy Game Pick (cell B7
would be highlighted)
8 Game
9 Dragon Fire Cindy Game Pick (cell D9
would be highlighted)

Sometimes, I'm sure, a value in the 2nd sheet would not be found in ShtOrig,
so it would just continue to the next value.

Is this possible? Can anyone help with the VBA required? I tried using
several different passes of the Duplicate Master add-in, but it seems no
puzzled-together series of operations will perform what I'm trying to get as
my end result.

Thanks for any help on this, and for reading. Your time and assistance is
greatly appreciated.




 
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
Shift + arrow to highlight and copy cells podbay New Users to Excel 2 September 25th 09 04:21 PM
Shift + Arrow to highlight and copy cells podbay Excel Discussion (Misc queries) 2 September 25th 09 04:16 PM
How do I highlight 'Delete sheet' in cells group. globusoculus Excel Worksheet Functions 1 November 17th 07 11:22 PM
Find all text instances in a sheet and add one number from each row Greg Excel Discussion (Misc queries) 1 January 31st 05 11:45 PM
Search, find, copy muliple cells from new sheet and paste Graham[_5_] Excel Programming 3 December 29th 03 07:38 PM


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