![]() |
Insert blank column every other column
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. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200708/1 |
Insert blank column every other column
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 "saman110 via OfficeKB.com" wrote: 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. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200708/1 |
Insert blank column every other column
Thank you.
Jim May wrote: 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 hi, [quoted text clipped - 3 lines] thx. -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200708/1 |
All times are GMT +1. The time now is 04:29 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com