View Single Post
Old 10-24-2008, 03:00 PM   #7
red sky
#1 Goaltender
 
red sky's Avatar
 
Join Date: Apr 2006
Exp:
Default

I found out the vba code for it:

Sub DelC()
Dim LC As Integer, i As Integer
LC = Cells(20, Columns.Count).End(xlToLeft).Column
For i = LC To 2 Step -1
If Val(Cells(20, i).Value) = 0 Then Columns(i).Delete
Next i
End Sub
red sky is offline   Reply With Quote