.....is it only when the cell contains data , or is it "populated" if it is formatted but otherwise blank?
John
.....is it only when the cell contains data , or is it "populated" if it is formatted but otherwise blank?
John
I can't actually see any definition of 'populated' in this context on Microsoft's web pages.
Personally I only regard a cell as populated if it contains some character. I don't consider mere formatting as 'populating' a cell.
However you could invoke the Humpty Dumpty doctrine from Through the Looking-Glass...
"When I use a word," Humpty Dumpty said, in rather a scornful tone, "it means just what I choose it to mean—neither more nor less."
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star iconbelow the post.
Maybe you should consider the concept of "clean and/or dirty".
If a cell has had no changes made to it, it is "clean" ... and this can be extended to the worksheet and, in turn, the workbook. If you enter data or format the cell, it becomes "dirty".
Consequently, when you then close the workbook, if any cell is marked as dirty, you will be asked if you want to save the workbook.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
More details:
Using the following code:
I get a count of 27573. then i delete 5 cells and still get 27573![]()
Please Login or Register to view this content.
I get the feeling that the code is counting all the cells in the used range.
john
Last edited by john/nyc; 12-01-2013 at 04:06 PM.
That will always be the case until you save the workbook.
Saving resets the used range, which I guess is sort of what you'd want since until you've saved the workbook any cells you've made blank need to be available to an UNDO for instance and to that extent you might term them 'still used'.
Not sure whether that's how MS think about it but that's my take.
Hello john/nyc,
The UsedRange will always include formatted cells.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Maybe:
![]()
Please Login or Register to view this content.
Regards, TMS
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks