Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2007

Tip: Looking for answers? Try searching our database.

Can you separate multiple tabs each into their own file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hammermw - 28 Feb 2007 19:10 GMT
I have a workbook with 100 tabs and I need to send out each of those tabs
separately.  I was wondering if there was an efficient way to get each of
those tabs into their own file.
Ron de Bruin - 28 Feb 2007 19:14 GMT
Hi hammermw

Yes that is possible

Run this macro
http://www.rondebruin.nl/copy6.htm

Signature

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

>I have a workbook with 100 tabs and I need to send out each of those tabs
> separately.  I was wondering if there was an efficient way to get each of
> those tabs into their own file.
Gord Dibben - 28 Feb 2007 19:37 GMT
Run this macro.

Sub Make_New_Books()
Dim w As Worksheet
   Application.ScreenUpdating = False
   Application.DisplayAlerts = False
   For Each w In ActiveWorkbook.Worksheets
       w.Copy
       ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\" & w.Name
       ActiveWorkbook.Close
   Next w
   Application.DisplayAlerts = True
   Application.ScreenUpdating = True
End Sub

If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".

http://www.mvps.org/dmcritchie/excel/getstarted.htm

In the meantime..........

First...create a backup copy of your original workbook.

To create a General Module, hit ALT + F11 to open the Visual Basic Editor.

Hit CRTL + r to open Project Explorer.

Find your workbook/project and select it.

Right-click and Insert>Module.  Paste the code in there.  Save the
workbook and hit ALT + Q to return to your workbook.

Run or edit the macro by going to Tool>Macro>Macros.

You can also assign this macro to a button or a shortcut key combo.

Gord Dibben  MS Excel MVP

>I have a workbook with 100 tabs and I need to send out each of those tabs
>separately.  I was wondering if there was an efficient way to get each of
>those tabs into their own file.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.