sparkytech
Board Regular
- Joined
- Mar 6, 2018
- Messages
- 96
- Office Version
- 365
- 2019
I need help with VBA to copy formulas and formatting to new row. The code below inserts (5) new rows at the top of my table. How can I make this copy the formatting, conditional formatting, and formulas from the existing row below?
VBA Code:
Sub InsertFiveRows(control As IRibbonControl)
Application.ScreenUpdating = False
Dim i As Integer
For i = 1 To 5
Sheet1.Cells(5, 1).EntireRow.Insert
Next i
Application.ScreenUpdating = True
End Sub