Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 94
Default insert a blank column between each column in a data file

I have a file with 60 columns, I need to insert a blank column between each
of these 60 columns, is there a macro or command I could use?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default insert a blank column between each column in a data file

hi
manual = select every other column and hit ctrl++
or you can paste this in a standard module
Sub addcol()
Dim c As Range
Dim cc As Range
Set c = Cells(1, 2)
For i = 1 To 60
Set cc = c.Offset(0, 1)
c.EntireColumn.Insert
Set c = cc
Next i
End Sub

regards
FSt1

"Holly" wrote:

I have a file with 60 columns, I need to insert a blank column between each
of these 60 columns, is there a macro or command I could use?

Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert blank column every other column saman110 via OfficeKB.com Excel Discussion (Misc queries) 2 August 29th 07 09:06 PM
Insert A blank Row Everytime the date changes in column B Dtown Dawg Excel Discussion (Misc queries) 3 November 15th 06 06:08 PM
insert is deleting column data dunskii Excel Discussion (Misc queries) 3 September 28th 06 09:49 PM
Find first non-blank or non-zero in a column of data DerbyJim Excel Discussion (Misc queries) 3 January 16th 06 12:50 PM
insert a blank row after data changes in a column cyndi Excel Discussion (Misc queries) 2 October 24th 05 02:46 PM


All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"