Enigma: there are cells in my workbook that are "blank" even when you hover the mouse over the cell the formula bar is blank. However when I print the page I get 8 blank pages. When I go to print preview the cells are blank but excel thinks that it is used so it is not blank.
when I use formula -=isblank(G9) it returns a FALSE VALUE. But it is actually empty.
I created this formula to delete blank cells in volums G and H but my macro is bombing.
Sub Macro1()
'
' Macro1 Macro
'
Dim wks As Worksheet
For Each wks In Worksheets
Columns("G:H").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
Next wks
End Sub
It works on a few sheets and then ingnore other sheets in the workbook.
Can someone point me in the right direction?
Thanks
when I use formula -=isblank(G9) it returns a FALSE VALUE. But it is actually empty.
I created this formula to delete blank cells in volums G and H but my macro is bombing.
Sub Macro1()
'
' Macro1 Macro
'
Dim wks As Worksheet
For Each wks In Worksheets
Columns("G:H").Select
Selection.SpecialCells(xlCellTypeBlanks).Select
Selection.EntireRow.Delete
Next wks
End Sub
It works on a few sheets and then ingnore other sheets in the workbook.
Can someone point me in the right direction?
Thanks