R
Ritchie
In my spreadsheet, I need to sort the data a number of
different ways. I originally used the following code:
Range("A12:L12").Select
Range(Selection, Selection.End(xlDown)).Select
to select all of the items in the spreadsheet.
Since then, I have found that columns A may not contain
data in all rows; which stops the sort at the first blank
row; even though there is data in subsequent rows.
This all so holds true for columns B, C, and D
I have tried to correct that shortcoming with something
like the following code but without much success:
Range("A12:specialcells(xlcelltypelastcell)").Select
Any suggestions would be greatly appreciated. Thanks!
different ways. I originally used the following code:
Range("A12:L12").Select
Range(Selection, Selection.End(xlDown)).Select
to select all of the items in the spreadsheet.
Since then, I have found that columns A may not contain
data in all rows; which stops the sort at the first blank
row; even though there is data in subsequent rows.
This all so holds true for columns B, C, and D
I have tried to correct that shortcoming with something
like the following code but without much success:
Range("A12:specialcells(xlcelltypelastcell)").Select
Any suggestions would be greatly appreciated. Thanks!