LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Creating a macro that will split data into different worksheets

Sub addshets()
For Each c In Range("a2:a5")
On Error Resume Next


Sheets.("Template").copy after:=Sheets(Sheets.Count): ActiveSheet.Name = c


Sheets.Add after:=Sheets(Sheets.Count): ActiveSheet.Name = c
Next c
End Sub



--
Don Guillett
SalesAid Software

"Don Guillett" wrote in message
...
Sub addshets()
For Each c In Range("a2:a5")
On Error Resume Next
Sheets.Add after:=Sheets(Sheets.Count): ActiveSheet.Name = c
Next c
End Sub

--
Don Guillett
SalesAid Software

"Bob" wrote in message
...
I would like to create a macro that will automatically create a worksheet
based on name. For example, if I have a file of sales data by salesrep,
how
can I create an individual worksheet for each sales rep without copying
and
pasting the data? Thanks.
--
Bob





 
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
Creating a summary sheet from data across multiple worksheets Mookarts Excel Discussion (Misc queries) 1 July 17th 06 11:51 AM
Creating a Macro Button to Extract Data william4444 New Users to Excel 2 July 4th 06 04:38 AM
Creating a Macro Button to Extract Data william4444 New Users to Excel 0 June 22nd 06 02:53 AM
Creating a macro to save only partial data Jparsons Excel Discussion (Misc queries) 0 September 24th 05 10:50 AM
Creating macro to lookup data tryer Excel Discussion (Misc queries) 1 August 3rd 05 08:37 PM


All times are GMT +1. The time now is 08:53 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"