timetabler
New Member
- Joined
- Jun 15, 2010
- Messages
- 27
I have web-site generated xls sheet (The site provides online data, I then press the excel icon and it creates and downloads as xls format). - The content appears to be raw (no colouring, or table lines)
The problem is that the cells which are empty are counted by excel i.e. select a2:a5 will count as 4 (bottom right of excel), as does counta(a2:a5).
To troubleshoot: code(a2) returns #VALUE! and ISBLANK(a2) returns FALSE, I have also tried paste special over the top, and also onto a new sheet. I have also searched for similar problems, but the code:
doesn't fix the problem
The only way I can solve the problem is to go into each cell (individually or in bulk) and press delete.
Is there a quicker way to solve the problem?
The problem is that the cells which are empty are counted by excel i.e. select a2:a5 will count as 4 (bottom right of excel), as does counta(a2:a5).
To troubleshoot: code(a2) returns #VALUE! and ISBLANK(a2) returns FALSE, I have also tried paste special over the top, and also onto a new sheet. I have also searched for similar problems, but the code:
Code:
Sub test()
For Each Sheet In Sheets
Sheet.Cells.SpecialCells(xlCellTypeBlanks).ClearFormats
Next Sheet
End Sub
The only way I can solve the problem is to go into each cell (individually or in bulk) and press delete.
Is there a quicker way to solve the problem?