Hi everyone,
The code I have does what I would like it to do, however, I would like to change how it selects the data. Right now, it copys and paste data based on the location of the cells. Now, I would like to copy and paste the data based on the headers in row 8 of "Activity Tracker - Publisher Co" tab. Into their respective columns in the “Master Publisher Content” tab. For example, the header “Publisher” in the activity tracker is in cell B8 while the data starts from B9 onwards. This data should go be matched with the header “Publisher / Influencer” in the “Master Publisher Content” in cell C2, where the data continues in C3 and onwards.
Other examples include as follows:
<tbody>
</tbody>
The code I have does what I would like it to do, however, I would like to change how it selects the data. Right now, it copys and paste data based on the location of the cells. Now, I would like to copy and paste the data based on the headers in row 8 of "Activity Tracker - Publisher Co" tab. Into their respective columns in the “Master Publisher Content” tab. For example, the header “Publisher” in the activity tracker is in cell B8 while the data starts from B9 onwards. This data should go be matched with the header “Publisher / Influencer” in the “Master Publisher Content” in cell C2, where the data continues in C3 and onwards.
Other examples include as follows:
Activity Tracker | Copy/Paste | Master Publisher Content |
Content URL/Details (C8) | --> | Content Name (D2) |
Co-investor (G8) | --> | Co-investing Partner (B2) |
<tbody>
</tbody>
Code:
Sub CopyandPaste_ContentName()
'
' CopyandPaste_ContentName Macro
'
'COPY & PASTE - "Publisher / Influencer" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("B9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("C3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Content Name" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("C9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("D3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Dream / Consider / Plan" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("E9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("E3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Content Type (Video / Editorial / Video+Editorial)" (Master/Paste)
'Sheets("Activity Tracker - Publisher Co").Select
'Range("F9").Select
'Range(Selection, Selection.End(xlDown)).Select
'Selection.Copy
'Sheets("Master Publisher Content").Select
'Range("F3").Select
'Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
'xlNone, SkipBlanks:=False, Transpose:=False
'ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Co-Investing Partner" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("G9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("B3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Reporting Start Date" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("I9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("G3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
'COPY & PASTE - "Reporting End Date" (Master/Paste)
Sheets("Activity Tracker - Publisher Co").Select
Range("J9").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Sheets("Master Publisher Content").Select
Range("H3").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
ActiveWindow.SmallScroll Down:=-18
Sheets("Enter Info").Select
End Sub