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: 1
Default Copy row marco

Hi,

In the following code I am trying to search one field in sheet2 with
value in sheet1

I can find the value and with/end set the font color to show me I foun
the value, but then I want to copy the roll that the item is in to
3rd sheet.

so the process is sheet 1 take value and search sheet2 for match the
copy matching and paste in sheet 3.

I cannot find what I need for copying and pasting a row.

Can anyone help?
Thanks
_____________________________________________
Sub upcLookup()
'
' upcLookup Macro
' Macro recorded 2/18/2004 by rbergesk
'
' Keyboard Shortcut: Ctrl+u
'
Dim intRowS As Integer, intRowT As Integer
Dim bText As String, bNumber As Integer
Dim strTab As String
intRowS = 1
Do Until IsEmpty(Worksheets(1).Cells(intRowS, 1))


Sheets("masterList").Select
Cells.Find(What:=Worksheets(1).Cells(intRowS, 1),
After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, _
MatchCase:=False).Activate

With ActiveCell.Font
.Bold = True
.Italic = True
.Color = RGB(244, 12, 51)
End With
'????Rows(intRowS).Cop
Worksheets("masterList").Rows(ActiveCell.Row)
intRowS = intRowS + 1

Loop
End Su

--
Message posted from http://www.ExcelForum.com

 
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
Marco Puzzled Excel Discussion (Misc queries) 3 July 30th 07 05:09 PM
Marco Help looper Excel Discussion (Misc queries) 2 May 12th 07 06:55 PM
I need some help with a Marco xgunda420x Excel Discussion (Misc queries) 2 August 2nd 05 01:43 PM
Marco Loi New Users to Excel 4 December 7th 04 08:52 PM
marco David Kuehl Excel Programming 4 September 18th 03 11:37 PM


All times are GMT +1. The time now is 04:32 AM.

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"