Macro below - thanks for the help in advance.
Sub deleteHiddenColumnsRows()
Dim answer As Integer
answer = MsgBox("Ya sure? Hopefully you didn't hit this on accident", vbYesNo + vbQuestion, "Do eet")
If answer = vbYes Then
For lp = 256 To 1 Step -1
If Columns(lp).EntireColumn.Hidden = True Then Columns(lp).EntireColumn.Delete Else
Next
For lp = 65536 To 1 Step -1
If Rows(lp).EntireRow.Hidden = True Then Rows(lp).EntireRow.Delete Else
Next
Else
'nothing
End If
End Sub
Sub deleteHiddenColumnsRows()
Dim answer As Integer
answer = MsgBox("Ya sure? Hopefully you didn't hit this on accident", vbYesNo + vbQuestion, "Do eet")
If answer = vbYes Then
For lp = 256 To 1 Step -1
If Columns(lp).EntireColumn.Hidden = True Then Columns(lp).EntireColumn.Delete Else
Next
For lp = 65536 To 1 Step -1
If Rows(lp).EntireRow.Hidden = True Then Rows(lp).EntireRow.Delete Else
Next
Else
'nothing
End If
End Sub