jassybun
Member
I need to change this range in vba to go to the last row with a value instead of a set range:
Sub macro()
Range("H2:H10").Select 'specify the range which suits your purpose
With Selection
Selection.NumberFormat = "General"
.Value = .Value
End With
End Sub
something like this? Set rng = Range("H2:H" & Cells(Rows.Count, 2).End(xlUp).Row)
Sub macro()
Range("H2:H10").Select 'specify the range which suits your purpose
With Selection
Selection.NumberFormat = "General"
.Value = .Value
End With
End Sub
something like this? Set rng = Range("H2:H" & Cells(Rows.Count, 2).End(xlUp).Row)