Deleting content after the last data value in VB or Macro.
I would like to something using macro but really I don't know how. This is
something I like to do
In a data containing worksheet,
1- finding the last cell which has value or text in A1 column in worksheet-A
2- Then delete the rest of the rows thereafter this row number
Something like below. Any help will be appreciated greatly. Thanks
Sub content_del()
$A = Find the last entered value at A1 column
then delete rest of the rows below this number.
Range("???:A1400").Select
Selection.EntireRow.Delete
End Sub
|