Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to paste search results into my 'Main' tab in an Excel
Book. I perform the search ok but every time I try to paste results, they end up all pasting in the same cell, thus overwriting one another. Here is part of mu code: If Range("B3") < "" Then With Worksheets("Movies").Range("B:B") Set c = .Find(cellval, LookIn:=xlValues) If Not c Is Nothing Then firstAddress = c.Address Do Sheets("Movies").Range(c.Address).Copy Set rng = Sheets("Main").Cells(Rows.Count, 2).End(xlUp)(2).Offset(0, -1) rng.PasteSpecial xlValues Set c = .FindNext(c) Loop While Not c Is Nothing And c.Address < firstAddress End If End With Anyone know whats going wrong here? Any help is appreciated, thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search for matches in two columns | Excel Worksheet Functions | |||
Search for matches and then append data | Excel Discussion (Misc queries) | |||
How to search a worksheet for text-value matches? | Excel Worksheet Functions | |||
I cant do a search on this forum. Everytime I search, it comes up with zero results | Excel Programming | |||
Search code won't find partial matches for P.N.s | Excel Programming |