Copy, Search and paste from two different sheets

eq52515

New Member
Joined
Jul 24, 2013
Messages
27
I have the following problem:
I would like to copy a cell in sheet one, switch to sheet two and search for the value that was copied; once found, then move over 8 columns and copy the value of that cell, switch back to sheet one, move over 8 columns and paste that value. And do this for as many items in Column C ( I need to copy info from master sheet to my 'working set' sheet without having to search for each and every serial number).

I have looked at past similar questions but haven't solved it yet.

TIA.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hello TIA. In what column in Sheet2 are you searching for the value from column C in Sheet1?
 
Upvote 0
Try:
Code:
Sub CopyCell()
    Application.ScreenUpdating = False
    Dim LastRow As Long
    LastRow = Sheets("Working Set").Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    Dim SerNum As Range
    Dim foundSerNum As Range
    For Each SerNum In Sheets("Working Set").Range("C2:C" & LastRow)
        Set foundSerNum = Sheets("Master").Range("B:B").Find(SerNum, LookIn:=xlValues, lookat:=xlWhole)
        If Not foundSerNum Is Nothing Then
            SerNum.Offset(0, 8) = foundSerNum.Offset(0, 8)
        End If
    Next SerNum
    Application.ScreenUpdating = True
End Sub
Make sure that the sheet names in the code match your actual sheet names.
 
Upvote 0
Thanks mumps, I will be out of the office for a couple of weeks, but i will try it as soon as I get back. Thanks.
 
Upvote 0

Forum statistics

Threads
1,216,085
Messages
6,128,732
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top