I don’t know if this is possible to do or not, so I hope somebody will be able to help.
I have a spreadsheet with a simple macro created in it that basically goes to a worksheet which contains a pivot table; selects a company number, and prints another sheet to my local desktop printer. Running the macro will automatically print 60 different companies – my question: can I have the same macro print to a pdf file? Currently if I print to pdf, it stops to ask you to name the file, after you’ve done that, it continues the pdf creation. I don’t mind saving each company if necessary in the initial set-up of the macro as I can easily merge all the separate files afterwards. I did try to create a new macro do this as a test and I got a runtime error. If I change my printer to pdf and try to run the original macro, I get also get a runtime error and that “Autosort must be turned off to move items in a field”.
Is this at all possible to do or does any one have any suggestions? My final project includes many pages from several different files and file types. Being able to place them all in a single pdf would greatly decrease the amount of time that it currently takes printing and collating everything from several different locations , not to mention several other benefits it offers.
Thanks,
Goodtogo