Macro to create new workbook and sheets

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

MS: XP
Excel: 2002

I have written macros to rearrange the data the way it’s 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.
 
Back
Top