A
Art
Esteemed Group Members and Lurkers:
I'm having a TERRIBLE time trying to get an ACCURATE size
for a worksheet in a macro. The functions I am using are:
ncol = ActiveSheet.Range(Cells(1, 1), Cells.SpecialCells
(xlLastCell)).Columns.Count
nrow = ActiveSheet.Range(Cells(1, 1), Cells.SpecialCells
(xlLastCell)).Rows.Count
Sometimes, a sheet that has had some cells outside the
currently "filled" range deleted, erroneously reports the
current filled range as bigger than the actual range.
This is driving me crazy! How do I 'reset' a sheet to get
rid of the 'invisible trash' that keeps the sheet from
reporting the correct size?
Thank you for any comments, suggestions, or assistance.
Blessings in abundance, all the best, and ENJOY!
Art Carlisle, PA USA
I'm having a TERRIBLE time trying to get an ACCURATE size
for a worksheet in a macro. The functions I am using are:
ncol = ActiveSheet.Range(Cells(1, 1), Cells.SpecialCells
(xlLastCell)).Columns.Count
nrow = ActiveSheet.Range(Cells(1, 1), Cells.SpecialCells
(xlLastCell)).Rows.Count
Sometimes, a sheet that has had some cells outside the
currently "filled" range deleted, erroneously reports the
current filled range as bigger than the actual range.
This is driving me crazy! How do I 'reset' a sheet to get
rid of the 'invisible trash' that keeps the sheet from
reporting the correct size?
Thank you for any comments, suggestions, or assistance.
Blessings in abundance, all the best, and ENJOY!
Art Carlisle, PA USA