Abhijeet R. Joshi
Active Member
Hi all,
Can you please help with the following issue that I have recently encountered numerous times..
Here is what happens, I define the Columns as variable and then delete some columns if the criteria is not followed...
below is the code I have used:
Hope someone has an answer..
Can you please help with the following issue that I have recently encountered numerous times..
Here is what happens, I define the Columns as variable and then delete some columns if the criteria is not followed...
below is the code I have used:
Code:
Sub Macro1()
'
Range("IV1").Select
Selection.End(xlToLeft).Select
dcc = ActiveCell.Column
For i = dcc To 1
If Cells(1, i).Value <> "" Then
Columns(i).Delete
Else
End If
Next i
End Sub
Hope someone has an answer..