The attached spreadsheet appears to be void of data in columns A:D, except for the first row, which contains column headings.
Yet, when I use Ctrl-Home to return to cell A1 and then Ctrl-DownArrow, the cursor travels to Cell A173. From A174, Ctrl-DownArrow takes me to row 65336 as I would expect.
Code: Select all
Sub test()
MsgBox Len(ActiveCell.Value)
End Sub
The MsgBox suggests to me that the cell is empty, yet from within Excel2003 I can detect no evidence of cell contents.
For example, loading a space into the cell makes it appear to be empty, but Len(ActiveCell.Value) then reports 1 rather than 0.
The file originated in an Android phone as an export of contacts to a VCF file (“20210301.vcf.xls”).
In another kingdom not so far away from where I type, a suggestion is made that “The cells have an invisible attribute that makes Excel treat them as non-empty”.
This application is supposed to run unattended as a utility might, cleaning up, we hope, thousands of workbooks for hundreds of users in dozens of cities … and so we need a VBA-programmable solution to treating these non-empty empty cells.
Thanks for any suggestions.
Chris
Unless you're in a hurry, just wait.