Related:
- Match data from multiple w/books & paste row
- Google books downloader - Download - Other
- Saints row 2 cheats - Guide
- Music match jukebox - Download - Audio playback
- Tmobile data check - Guide
- Transfer data from one excel worksheet to another automatically - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Nov 9, 2011 at 10:30 PM
Nov 9, 2011 at 10:30 PM
you mean multiple worksheets and not workbooks
see sample file in this webpage
http://speedy.sh/DaJVB/kev.sls.xls
try this macro
see sample file in this webpage
http://speedy.sh/DaJVB/kev.sls.xls
try this macro
Sub test() Dim j As Long, cfind As Range, r As Range, c As Range For j = 1 To Worksheets.Count If Worksheets(j).Name = "main" Then GoTo nextj With Worksheets(j) Set r = Range(.Range("B2"), .Range("B2").End(xlDown)) For Each c In r Set cfind = Worksheets("main").Columns("B:B").Find(what:=c.Value, lookat:=xlWhole) If Not cfind Is Nothing Then Range(.Cells(c.Row, "H"), .Cells(c.Row, "R")).Copy Worksheets("main").Cells(cfind.Row, "H").PasteSpecial End If Next c End With nextj: Next j End Sub
Nov 10, 2011 at 06:51 AM
Ive tried adapting code but cant get it to work ....