Hi
I am using the below code to delete blank columns in a particular range of Columns but code is not working. Not even showing any Error
I am using the below code to delete blank columns in a particular range of Columns but code is not working. Not even showing any Error
Sub DeleteBlankColumns()
Dim MR As Range
Dim iCounter As Long
Set MR = Range("V1:AI709")
For iCounter = MR.Columns.Count To 1 Step -1
If Application.CountA(Columns(iCounter).EntireColumn) = 1 Then
Columns(iCounter).Delete
End If
Next iCounter
End Sub