Thread: Delete columns
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Scottmk[_32_] Scottmk[_32_] is offline
external usenet poster
 
Posts: 1
Default Delete columns

Hi,
Could someone give me a code that will delete every other colum
between cells B:BA starting with cell B. There are 52 cells betweee
B:BA including them. Don't know if that helps or not. Here is a cod
I tried that basically took a long time before deleting all columns:

Dim i As Long

For i = 52 To 2 Step -1
Columns(i + 1).EntireColumn.Delete
Next i

Since this is a relatively short code, could someone break it down fo
me also? I am really trying to learn this stuff, I have bought 3 book
but I just never feel like reading them after work. Thanks,
Scott

--
Message posted from http://www.ExcelForum.com