Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default move columns to separate worksheets

Hello,

I have large amounts of imported data that I would like to separate
onto indivual tabs based on the header name. Is there a non-manual
way to do so?

Thanks,
Amanda
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default move columns to separate worksheets

Sub test()

Set oldsht = ActiveSheet
ColCount = 1
Do While oldsht.Cells(1, ColCount) < ""
Worksheets.Add after:=Sheets(Sheets.Count)
ActiveSheet.Name = oldsht.Cells(1, ColCount).Value
Set newsht = ActiveSheet
oldsht.Columns(ColCount).Copy _
Destination:=newsht.Columns("A:A")

ColCount = ColCount + 1
Loop

End Sub


"amanda" wrote:

Hello,

I have large amounts of imported data that I would like to separate
onto indivual tabs based on the header name. Is there a non-manual
way to do so?

Thanks,
Amanda

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
move text & numbers in column to separate columns deb Excel Discussion (Misc queries) 5 January 16th 09 05:31 AM
Move worksheets into separate workbooks De New Users to Excel 2 October 26th 06 08:51 PM
Linking columns in separate worksheets bonsai Excel Discussion (Misc queries) 0 August 23rd 06 08:30 PM
I wish to separate city, state, and zip into 3 separate columns Bob Woolbert Excel Worksheet Functions 1 July 11th 06 05:29 PM
Save 2 separate data imports in separate worksheets on the same ex Jay Excel Worksheet Functions 1 March 8th 06 01:31 PM


All times are GMT +1. The time now is 01:34 PM.

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

About Us

"It's about Microsoft Excel"