PC Review


Reply
Thread Tools Rate Thread

copy & paste columns to new worksheet

 
 
lijia137@gmail.com
Guest
Posts: n/a
 
      14th Dec 2007
I have a workbook with one big worksheet and i want to seperate some
columns to new worksheets, is there a macro program that I can do
instead of copy & paste columns by myself, cuz i hv to repeat the
process a lot of time, say it's always going be be column B,C,D,E to
one worksheet, FGHI to the second, ect... not sure if i've said it
clearly. thanks for any input!
 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      14th Dec 2007
try

Sub copycolstonewsheets()
lc = Cells(1, Columns.Count).End(xlToLeft).Column
For i = 2 To lc
Sheets.Add after:=Sheets(Sheets.Count)
ActiveSheet.Name = "sht" & i - 4
Sheets("sheet1").Columns(i).Resize(, 4).Copy Range("a1")
i = i + 4
Next i
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:845ea21d-b20d-49fc-864d-(E-Mail Removed)...
>I have a workbook with one big worksheet and i want to seperate some
> columns to new worksheets, is there a macro program that I can do
> instead of copy & paste columns by myself, cuz i hv to repeat the
> process a lot of time, say it's always going be be column B,C,D,E to
> one worksheet, FGHI to the second, ect... not sure if i've said it
> clearly. thanks for any input!


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy & paste worksheet with print settings into new worksheet Larry Ohio Microsoft Excel Misc 1 23rd Dec 2009 05:17 PM
Copy/paste new worksheet to master worksheet Roxy Microsoft Excel Programming 0 23rd Jan 2008 08:16 PM
Copy & paste cells fr open worksheet then close the worksheet =?Utf-8?B?U2lu?= Microsoft Excel Programming 1 2nd Oct 2006 02:20 PM
Re: excel 97: copy and paste values from one worksheet to another worksheet JMCN Microsoft Excel Programming 2 23rd Sep 2003 01:32 PM
excel 97: copy and paste values from one worksheet to another worksheet Kathy Microsoft Excel Programming 0 21st Sep 2003 03:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:10 AM.