In 2010, you can save the entire book in PDF, making each sheet "active". It sounds strange, but if you notice the print options when you make a PDF, there is no way for a book. To get around this, open the excel file and fill in some data on 2-3 worksheets. Now hold the ctrl
key and click on each other's book, then it will become a "Group".
You will notice that the name [GROUP]
displayed at the top of the excel file, and now when you print the excel file, it prints the entire book.
Try it for yourself. In code, you just need to make each worksheet an active worksheet. I don't work much with the excel object model, but for this you might need to make a macro and look at the code.
I recorded a macro, and here is VBA:
Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
It looks like you just need to store each sheet in an array, and then just
Sheets(MyArray).Select
Then all sheets will be activated and [grouped], and then you can print the printout in pdf format. Having recorded the macro, he also provided options for printing in pdf format:
`ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _ "C:\Users\MyAccount\Desktop\test.pdf", Quality:=xlQualityStandard, _ IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:= _ True`
In this case, the active sheet is your sheet group that you saved in the array.