billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Evening All
Is there a possible shorter way to delete Columns with No Data.
Thanks
Is there a possible shorter way to delete Columns with No Data.
Thanks
Code:
Sub DeleteBlankCol()
col = Cells(1, Columns.Count).End(xlToLeft).Column
For c = col To 1 Step -1
If WorksheetFunction.CountA(Columns(c)) = 0 Then
Columns(c).Delete
End If
Next
End Sub