i want get the range from cell A1 to end of the cell which contains the data only.
I tried this few way still failed.
Example:
ActiveSheet.Range("A:A").Address
Range("A65536").End(xlUp).Row
regards, YY
i want get the range from cell A1 to end of the cell which contains the data only.
I tried this few way still failed.
Example:
ActiveSheet.Range("A:A").Address
Range("A65536").End(xlUp).Row
regards, YY
This should do the trick:
ActiveSheet.Range("A1", ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Address).Select