Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Macro to create new workbook and sheets

MS: XP
Excel: 2002

I have written macros to rearrange the data the way its needed to create a
database. The sheet name is Table. The workbook will be open. Now I need to
do the following and need some help to get it done.

1) Column B contains names, the names are unique and in sorted order.
2) I wish to:
a) Create a new workbook named Schedule. If workbook Schedule already
exists then it needs to be deleted.
b) Create a new sheet in the workbook Schedule for each different name found
in column B.
c) Each newly created sheet to be named the value in column B.
d) Move all rows with the same name to the newly created sheet that has that
name.
e) Finished.

Thanks in advanced for any help.

--
Richard
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Macro to create new workbook and sheets

hi Richard

Start here
http://www.rondebruin.nl/copy5.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Richard" wrote in message ...
MS: XP
Excel: 2002

I have written macros to rearrange the data the way its needed to create a
database. The sheet name is Table. The workbook will be open. Now I need to
do the following and need some help to get it done.

1) Column B contains names, the names are unique and in sorted order.
2) I wish to:
a) Create a new workbook named Schedule. If workbook Schedule already
exists then it needs to be deleted.
b) Create a new sheet in the workbook Schedule for each different name found
in column B.
c) Each newly created sheet to be named the value in column B.
d) Move all rows with the same name to the newly created sheet that has that
name.
e) Finished.

Thanks in advanced for any help.

--
Richard


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
Use Macro to protect choosen sheets in workbook kevhatch Excel Discussion (Misc queries) 1 January 27th 07 06:52 PM
CREATE MULTIPLE WORK SHEETS IN A WORKBOOK excel multiple worksheets Excel Worksheet Functions 1 December 31st 06 11:48 PM
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA Amaxwell Excel Worksheet Functions 4 August 17th 06 06:23 AM
CREATE NEW WORKBOOK AND SHEETS BASED ON COLUMN DATA control freak Excel Worksheet Functions 2 July 20th 06 06:00 PM
How to create workbook with multiple sheets control freak Excel Discussion (Misc queries) 0 July 19th 06 06:54 PM


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

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"