Hi,
I have a spreadsheet where i would like to copy values between "G20:R20" and paste to every 14th cell in the same row (20). I am using below code. its running but doesn't change the values and paste the copy range. Can anyone help me with below code?
I have a spreadsheet where i would like to copy values between "G20:R20" and paste to every 14th cell in the same row (20). I am using below code. its running but doesn't change the values and paste the copy range. Can anyone help me with below code?
VBA Code:
Sub CopyDateHeaders()
'Modified 7/3/2023 1:53:43 AM EST
Application.ScreenUpdating = False
Dim cpy As range
Dim lastRow As Long
With Worksheets("Summary by 33")
lastRow = 20
Set cpy = .range("G20:R20")
For colx = 20 To 188 Step 14
.range(.Cells(20, colx), .Cells(lastRow, colx)).Value = cpy.Value
Next
End With
Application.ScreenUpdating = True
End Sub