Insert blank column every other column

  • Thread starter saman110 via OfficeKB.com
  • Start date
S

saman110 via OfficeKB.com

hi,

I have many columns with data A:ACW and I would like to insert a empty column
between every other columns so i could enter data. is there any way i could
run a macro to do that?

thx.
 
G

Guest

Sub InsertColumns()
Dim c As Long
Application.ScreenUpdating = False
c = Range("IV1").End(xlToLeft).Column
For c = c To 2 Step -1
Cells(1, c).EntireColumn.Insert
Next c
Application.ScreenUpdating = True
End Sub

HTH

Jim May
 
S

saman110 via OfficeKB.com

Thank you.

Jim said:
Sub InsertColumns()
Dim c As Long
Application.ScreenUpdating = False
c = Range("IV1").End(xlToLeft).Column
For c = c To 2 Step -1
Cells(1, c).EntireColumn.Insert
Next c
Application.ScreenUpdating = True
End Sub

HTH

Jim May
[quoted text clipped - 3 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top