A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Dim myRange As Range
Set myRange = Selection.Cells(1, 1)
With ActiveWorkbook.Worksheets(1)
Set myRange = .Range(myRange, myRange.End(2))
Set myRange = .Range(myRange, myRange.End(4))
End With
myRange.Select
-- Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, Posted via the NNTP Bridge
"XP3" wrote in message news:*** Email address is removed for privacy ***...
Can someone please help me out with a line or two of VBA that will select the entire spreadsheet (all columns/all rows) beneath the current used range (regardless of the number of columns used)?
Thanks for your assistance.
Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org