Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,113
- Office Version
- 365
- Platform
- Windows
Hi All,
How do I provide vba to select all data from column(s) until the last row of data?
Because this is not working for me??
Thanks,
pinaceous
How do I provide vba to select all data from column(s) until the last row of data?
VBA Code:
With .ActiveSheet
With .UsedRange.Cells.SpecialCells(xlCellTypeLastCell)
r = .Row
c = .Column
End With
Set xlRng = .Range(.Cells(1, 1), .Cells(r, c))
End With
End With
Because this is not working for me??
Thanks,
pinaceous