Hi
below code not working as he suppose to...
when i run macro it delete entire column against range("A1:A5")
i want to delete column from 4 to 1 , Column B is my first column
i will appreciate any help on this
below code not working as he suppose to...
when i run macro it delete entire column against range("A1:A5")
i want to delete column from 4 to 1 , Column B is my first column
i will appreciate any help on this
Code:
Sub test()
Dim rng As Range
Dim c As Range
Set rng = Range("A1:A5")
For Each c In rng
For i = 4 To 1 Step -1
c.Offset(0, i).EntireColumn.Delete
Next i
Next c
End Sub