Hi everyone,
I am really new to VBA coding and am trying to figure out how to copy the data from one sheet ("Search") across to two different sheets ("Tracker" and "Reporting"). Reporting is Sheet7.
So far, i have the code for the first Copy as this is a straightforward copy and paste (transposing the data) however, the second Copy is a condensed version, so i don't need the same data range to be copied, only selected fields.
Is there a way to combine these sort of things. this is what i have so far for the first copy which works;
Sheets("Search").Range("C4:C57").Copy
Sheets("Tracker").Cells(Rows.Count, "A").End(xlUp).Offset(1). _
PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
And this is the other copy (condensed version) but i would like to link these if possible in the same module.
erw = Sheet7.Cells(1, 1).End(xlDown).Row + 1
Sheet7.Cells(erw, 1) = Range("C4")
Sheet7.Cells(erw, 2) = Range("C7")
Sheet7.Cells(erw, 3) = Range("C14")
Sheet7.Cells(erw, 4) = Range("C20")
Sheet7.Cells(erw, 5) = Range("C9")
Sheet7.Cells(erw, 6) = Range("C8")
Sheet7.Cells(erw, 7) = Range("C18")
Sheet7.Cells(erw, 8) = Range("C5")
Sheet7.Cells(erw, 9) = Range("C12")
Sheet7.Cells(erw, 10) = Range("C11")
Sheet7.Cells(erw, 11) = Range("C48")
Sheet7.Cells(erw, 12) = Range("C26")
Sheet7.Cells(erw, 13) = Range("C26")
I am really new to VBA coding and am trying to figure out how to copy the data from one sheet ("Search") across to two different sheets ("Tracker" and "Reporting"). Reporting is Sheet7.
So far, i have the code for the first Copy as this is a straightforward copy and paste (transposing the data) however, the second Copy is a condensed version, so i don't need the same data range to be copied, only selected fields.
Is there a way to combine these sort of things. this is what i have so far for the first copy which works;
Sheets("Search").Range("C4:C57").Copy
Sheets("Tracker").Cells(Rows.Count, "A").End(xlUp).Offset(1). _
PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
And this is the other copy (condensed version) but i would like to link these if possible in the same module.
erw = Sheet7.Cells(1, 1).End(xlDown).Row + 1
Sheet7.Cells(erw, 1) = Range("C4")
Sheet7.Cells(erw, 2) = Range("C7")
Sheet7.Cells(erw, 3) = Range("C14")
Sheet7.Cells(erw, 4) = Range("C20")
Sheet7.Cells(erw, 5) = Range("C9")
Sheet7.Cells(erw, 6) = Range("C8")
Sheet7.Cells(erw, 7) = Range("C18")
Sheet7.Cells(erw, 8) = Range("C5")
Sheet7.Cells(erw, 9) = Range("C12")
Sheet7.Cells(erw, 10) = Range("C11")
Sheet7.Cells(erw, 11) = Range("C48")
Sheet7.Cells(erw, 12) = Range("C26")
Sheet7.Cells(erw, 13) = Range("C26")