This is a working VBA macro, which fills column 3 with the text "Ind", starting at row 2 and filling as many rows in column 3 as have content in column 1. But I would prefer to identify the column by name (header) instead of number. The column number, as you can see, is 3. The column header is "type". Thank you!
Sub FillInd()
Dim r As Long
Dim c As Long
Dim LR As Long
c = 3
LR = Cells(Rows.Count, 1).End(xlUp).Row
With ActiveSheet
For r = 2 To LR
.Cells(r, c).Value = "Ind"
Next r
End With
End Sub
Sub FillInd()
Dim r As Long
Dim c As Long
Dim LR As Long
c = 3
LR = Cells(Rows.Count, 1).End(xlUp).Row
With ActiveSheet
For r = 2 To LR
.Cells(r, c).Value = "Ind"
Next r
End With
End Sub