gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,340
- Office Version
- 365
- Platform
- Windows
I have code (that someone was kind enough to help with) that inserts a blank row in my table based on conditions
What I would like to do is to go back through the table and where there is a blank row change its row height to 9.0
Thanks for the help!
Code:
Sheet4.Select
Dim col As String
Dim i As Long
Dim startRow As Long
Dim lastRow As Long
col = "F"
startRow = 4
lastRow = Cells(Rows.Count, col).End(xlUp).Row
With ActiveSheet
For i = lastRow To startRow Step -1
If Range("F" & i).Value = "1" Then
.Cells(i, col).EntireRow.Insert shift:=xlDown
End If
Next i
End With
What I would like to do is to go back through the table and where there is a blank row change its row height to 9.0
Thanks for the help!