Results 1 to 20 of 24

Thread: Solved: Printing multiple worksheets to a single pdf file

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ooh, I came with a good last question: if I want the pdf to always have the samename as the active workbook does,
    [vba]sPDFName = "Consolidated.pdf"
    sPDFPath = ActiveWorkbook.Path & Application.PathSeparator
    Set pdfjob = New PDFCreator.clsPDFCreator[/vba]
    can that be done with something like Actveworkbook.name?

    edit:
    Yay! replace "consolidated" with Activeworkbook.name works to make it have the workbook name.and it works!

    is there also code to have the script open the folder it is saved to? (something with activeworkbook.path)?
    Last edited by andrewvanmar; 06-15-2007 at 08:15 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •