I simply need to change the font of a row after the table last row + 2rows for cells from ("A: M") but I don't know how to write that in VBA code ... I have a code to Addnewrow and I wrote the last section in the below code but unfortunately wrong
any sugesstion please
Cross-posted at How to Define the row after Lastrow in VBA
any sugesstion please
VBA Code:
Sub Addnewrow()
Dim lo As ListObject
Dim newRow As ListRow
Dim cpyRng As Range
Set lo = Range("Data").ListObject
Set newRow = lo.ListRows.Add
With newRow
.Range(12).FillDown
With Range("A" & LastRow + 2)
.Font.Size = 12
.Font.Name = "Tahoma"
.Font.Bold = True
End With
End With
End Sub
Cross-posted at How to Define the row after Lastrow in VBA
Last edited by a moderator: