Results 1 to 9 of 9

Thread: Issue saving Excel Worksheet to .pdf

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,512
    Location
    Welcome to VBAX kpost. Someone will be along shortly to assist you in this matter.

    In the mean time this is how I would save a workbook as a pdf file

    Sub SaveActiveWorkbookAsPDF()
        ' Create and assign variables
        Dim saveLocation As String
        saveLocation = "C:\Users\JimmyCrickets\Documents\myPDFFile.pdf"
        ' Save active workbook as PDF
        ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:=saveLocation
    End Sub
    Last edited by Aussiebear; 05-16-2025 at 02:54 AM.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Posting Permissions

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