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 from one tab to a second tab in the same workbook

I'm having difficult writing the macro to do a search on a certain field on
one workbook and copy the entire row of data onto a second tab any ideas?
--
MC
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Search and Copy from one tab to a second tab in the same workbook

Show us what you have done so far

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"markcope91" wrote in message
...
I'm having difficult writing the macro to do a search on a certain field
on
one workbook and copy the entire row of data onto a second tab any ideas?
--
MC


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default Search and Copy from one tab to a second tab in the same workbook

set sht1 = sheets("Sheet1")
set sht2 = sheets("Sheet2")


set c = sht1.columns("A").find(what:="abc", _
lookin:=xlvalues,lookat:=xlwhole)
if not c is nothing then
sht1.rows(c.row).copy _
destination:=sht2.rows(5)
end if


"markcope91" wrote:

I'm having difficult writing the macro to do a search on a certain field on
one workbook and copy the entire row of data onto a second tab any ideas?
--
MC

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
Set up search box to, by default, search workbook in the extraoptions? StargateFanNotAtHome[_2_] Excel Programming 2 September 3rd 09 03:42 PM
Column range to search from a source workbook and then copy/paste DanS Excel Programming 0 February 10th 09 11:29 PM
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 Data from one Workbook and copy it into another Workbook Matz Excel Discussion (Misc queries) 0 August 4th 06 10:45 AM
Search within range for first populated cell and copy to new workbook 1ceman Excel Programming 1 May 9th 06 12:20 AM


All times are GMT +1. The time now is 05:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"