I'm a bit brain dead tonight and cant make this work.
Simply trying to copy the formatting of the range from N4:N5 to the entire columns of O and T, both starting in row 4.
Row length will be variable from sheet to sheet. Here is what I have.
Simply trying to copy the formatting of the range from N4:N5 to the entire columns of O and T, both starting in row 4.
Row length will be variable from sheet to sheet. Here is what I have.
Code:
Sub reformatStripes()'
' reformatStripes Macro
'
Dim lastrow As Long
lastrow = Range("A" & Rows.Count).End(xlUp).Row
'
Selection.Copy
Range("N4").Select
Application.CutCopyMode = False
Selection.Copy
Range("O4:O" & lastrow).Select.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("T4:T" & lastrow).Select.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("A1").Select
End Sub
Last edited: