I am wondering why the syntax is wrong here:
Code works fine without it but I would also like to keep formatting so user can follow data easily.
Help please.
Code:
Sub FindProj() 'Finds project name in Historical Worksheet and pastes it in Data Worksheet
Dim Lastrow As Long
Dim Newproj As Long
Dim Master As Range
Dim Masterrow As Long
Masterrow = Worksheets("Data").Range("Master").Rows.Count
Lastrow = Sheets("Historical").Cells(Rows.Count, "B").End(xlUp).Row
Newproj = Sheets("Data").Cells(Rows.Count, "C").End(xlUp).Row
Sheets("Historical").Cells(Lastrow, "B").Copy Sheets("Data").Cells(Newproj - Masterrow + 1, "C")[COLOR=#ff0000].PasteSpecial xlFormats[/COLOR]
End Sub
Code works fine without it but I would also like to keep formatting so user can follow data easily.
Help please.