Range(Cells(iVar, 1), Cells(iVar, 12)).Resize(2).FillDown
Range(Cells(iVar, 14), Cells(iVar, 38)).Resize(2).FillDown
Can it be...?
Range(Cells(iVar, 1), Cells(iVar, 12)).Resize(2).FillDown.Format
Range(Cells(iVar, 14), Cells(iVar, 38)).Resize(2).FillDown.Format
Is there any way to filldown only the formatting? I am trying to make it copy only the formatting from those cells in the last used line to the cells in the next line down.
More of the code reads thusly...
Range(Cells(iVar, 14), Cells(iVar, 38)).Resize(2).FillDown
Can it be...?
Range(Cells(iVar, 1), Cells(iVar, 12)).Resize(2).FillDown.Format
Range(Cells(iVar, 14), Cells(iVar, 38)).Resize(2).FillDown.Format
Is there any way to filldown only the formatting? I am trying to make it copy only the formatting from those cells in the last used line to the cells in the next line down.
More of the code reads thusly...
Code:
Private Sub CommandButton2_Click()
Dim ws As Worksheet
Dim rngNext As Range
Dim iVar As Long
iVar = Range("B" & Rows.Count).End(xlUp).Row
Set ws = Worksheets("EVENTS")
Set rngNext = ws.Range("B" & Rows.Count).End(xlUp).Offset(1)
Range(Cells(iVar, 1), Cells(iVar, 12)).Resize(2).FillDown
Range(Cells(iVar, 14), Cells(iVar, 38)).Resize(2).FillDown
rngNext.Value = Calendar.Value
rngNext.Offset(, 1).Value = MOR.Value
rngNext.Offset(, 2).Value = LOSS.Value
rngNext.Offset(, 3).Value = OD.Value
Unload Me
End Sub
Last edited: