I think that Marcus' code will delete all columns except column 1. You need
to work backwards when deleting columns or rows.
Try this modification
Sub RemCol()
Dim Col As Integer
Col = 2
Application.ScreenUpdating = False
For i = 256 To Col Step -2
Cells(1, i).EntireColumn.Delete
Next i
End Sub
--
Regards,
OssieMac
"marcus" wrote:
> Hi Mary
>
> This will delete every second column in your sheet. Take care
>
> marcus
>
> Sub RemCol()
>
> Dim Col As Integer
> Col = 2
> Application.ScreenUpdating = False
> For i = Col To 256 Step 2
> Cells(1, Col).EntireColumn.Delete
> Next i
>
> End Sub
>
|