Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Macro to search a text in a cell and copy the row to another set of cell

HI All,

There is a drop down which when i click on a text in the drop down list, excel should search for the text in a specific column, if found matched, copy the contents of the row where the text was found into another sets cells.

For example, if 310UB40.4 is clicked from the drop down, excel should search for "310UB40.4" in column B. Since 310UB540.4 is found in row 8, 25, 52 etc in column B, all the contents in row 8 should be copied from J3 to Q3, all the contents from row 25 should be copied to J4 to Q4 and copies down.

Please help. Been bogged down with this for a while now.

Thanks a lot..
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,522
Default Macro to search a text in a cell and copy the row to another setof cell

You can do this with a drop down list of the values to look for tied
to a worksheet_change event to use datafilterautofllterfilter for
the valuecopy the visible cells to the destination cell

On Feb 9, 11:21*pm, rethish wrote:
HI All,

There is a drop down which when i click on a text in the drop down list,
excel should search for the text in a specific column, if found matched,
copy the contents of the row where the text was found into another sets
cells.

For example, if 310UB40.4 is clicked from the drop down, excel should
search for "310UB40.4" in column B. Since 310UB540.4 is found in row 8,
25, 52 etc in column B, all the contents in row 8 should be copied from
J3 to Q3, all the contents from row 25 should be copied to J4 to Q4 and
copies down.

Please help. Been bogged down with this for a while now.

Thanks a lot..

--
rethish


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
copy a cell value based on search of another cell Pendal Excel Worksheet Functions 1 November 12th 08 05:33 PM
FIND / SEARCH text compare cell to string in 3rd cell nastech Excel Discussion (Misc queries) 0 October 29th 07 02:51 AM
Use Macro to copy part of text in cell PhilipsBernard Excel Programming 2 October 17th 05 09:09 AM
Macro to copy text upon entry into cell RAP Excel Programming 1 August 12th 05 08:49 AM
Macro to copy text to a specific cell reference shanman_lmtd Excel Programming 3 July 23rd 04 03:32 PM


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