J
jonnybrovo815
I run this bit of code to find the address of the the last cell in column K.
Sub test()
Dim x As Range
Worksheets("NCSA_ISS_ITEM_BOM").Activate
Set x = Cells(Rows.Count, "K").End(xlDown)
MsgBox x.Address
End Sub
I would like to save the resulting row address as a variable to run as part
of another set of code.
How would I go about doing this?
Sub test()
Dim x As Range
Worksheets("NCSA_ISS_ITEM_BOM").Activate
Set x = Cells(Rows.Count, "K").End(xlDown)
MsgBox x.Address
End Sub
I would like to save the resulting row address as a variable to run as part
of another set of code.
How would I go about doing this?