sean_f_howard
New Member
- Joined
- Dec 9, 2004
- Messages
- 29
Why is it that
sometimes gives a different range from
The issue arose by setting the print range for a worksheet. The first solution worked OK, but usually included an extra (and indeed empty) column from the far right of the worksheet.
The solution works great for all cases but I want to know if anybody can tell me why this is so.
Code:
ActiveSheet.SpecialCells(xlCellTypeLastCell))
sometimes gives a different range from
Code:
ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell))
The issue arose by setting the print range for a worksheet. The first solution worked OK, but usually included an extra (and indeed empty) column from the far right of the worksheet.
The solution works great for all cases but I want to know if anybody can tell me why this is so.