Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default search and copy

Without moving the cursor from the active cell, I need a
code that will look across Row 1 in Sheet2 and find the
one value that will match the value in Sheet3!A1. I then
need it to copy that row.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default search and copy

Not sure what you want to copy, but X will contain the *column* number where
the match was found:

X = Application.Match(Worksheets("Sheet3").Range("A1") , _
Worksheets("Sheet2").Rows(1),0)



On Thu, 16 Sep 2004 14:39:01 -0700, "jjohn"
wrote:

Without moving the cursor from the active cell, I need a
code that will look across Row 1 in Sheet2 and find the
one value that will match the value in Sheet3!A1. I then
need it to copy that row.


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
Search and copy Sj Excel Discussion (Misc queries) 2 August 6th 09 04:18 PM
Search, copy and paste help [email protected] Excel Discussion (Misc queries) 0 June 15th 07 02:48 AM
How to search column, copy row, and copy to another sheet in same Rockhound Excel Discussion (Misc queries) 1 December 9th 06 04:16 PM
Search and Copy CribbsStyle Excel Worksheet Functions 0 October 6th 06 08:02 PM
Search and copy Hru48 Excel Discussion (Misc queries) 1 October 31st 05 03:56 PM


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