Solved

Separating workbook sheets into separate files - quickly!

Posted on 2012-03-30
10
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

631 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