Solved

Separating workbook sheets into separate files - quickly!

Posted on 2012-03-30
10
203 Views
Last Modified: 2012-04-20
Hi
If I have a workbook with 20 separately named worksheets - how do I quickly separate these out into separate files in Excel and/or PDF? e.g. if I have a file with 3 worksheets - Jan, Feb and March, how can I quickly separate those into 4 files: original, jan, feb, and March? Either in Excel format or PDF? Thanks.
0
Comment
Question by:agwalsh
10 Comments
 
LVL 11

Accepted Solution

by:
netballi earned 350 total points
ID: 37786542
0
 
LVL 6

Expert Comment

by:todd_beedy
ID: 37786683
fastest and easiest would be to open the spreadsheet... right click on the sheet and move/copy to new book. rinse and repeat no code needed. You can also use the checkbox copy function to retain data.

As for the PDF, depends on the copy of office you have. you can save to pdf starting in 2007 (once you split the books) or you can "print to pdf" using something like cutepdf, pdf printer, etc etc. Mark the selection entire workbook for single pdf or active sheets for pdf of current sheet only.

That being said... if you have to do this repeatedly... I would suggest writing a small piece of code as suggested as it will be faster over time.
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37786788
quote
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:agwalsh
ID: 37788897
@todd_beedy - I'm familiar with that..but the person I am helping has to do it for 25 odd spreadsheets every week so (not surprisingly...) she wants to find a better way..am going to have a look at the code given in the link and try that out.. thanks to everyone..
0
 
LVL 6

Expert Comment

by:todd_beedy
ID: 37788911
if you need help I am fairly good at working with excel and some VBA.

Let me know if I can be of assistance.

The other thing you can try as well is to record a macro and then look at the VBA behind it. you can save it to personal macro workbook so its acrossed all excel books on that machine.
0
 

Author Comment

by:agwalsh
ID: 37799832
Hi
I have tried out the code in the link and it works beautifully :-) thank you.. However while I can get it to work if I create the macro in the workbook - i'm having problems with installing it in the personal macro workbook so that it's available to all files...any suggestions?
Thanks.
0
 
LVL 6

Assisted Solution

by:todd_beedy
todd_beedy earned 150 total points
ID: 37800600
ok the best way to do that is to record a macro into the personal workbook. can be anything...

once you have done that... unhide the personal macros workbook. From there "edit" your macro. You can then import and/or copy and past the code into that module and while inside the VBA.

Once you get the code into your personal workbook... you need hide the personal workbook again and close everything out. Remember to "save" when it asks you if you want to save the personal workbook.

If you have
0
 

Author Comment

by:agwalsh
ID: 37800711
I tried this but had problems..but will try again.. :-)
0
 
LVL 6

Expert Comment

by:todd_beedy
ID: 37801086
ok if you wind up needing help i can provide some assistance over join <dot> me or something similar.
0
 

Author Closing Comment

by:agwalsh
ID: 37870375
Thanks for help to everyone. The person I did it for never got back to me so I reckon the link at the beginning was the best :-)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question