Save multiple sheets to .pdf
问题 I have a reporting spreadsheet that grabs some data from a database and forms three sheets of summary report information. I want to run the spreadsheet automatically from the command line, and have it automatically save all three reporting sheets as a PDF file(s). At first I thought I could have a VBA macro on the sheet do this by a series of \"print as PDF\", but that requires an intermediary interactive dialog box to specify the output file name. Then I find that I can just save as pdf, and