Results 1 to 6 of 6

How to use a macro to save worksheet as pdf to current folder

Threaded View

  1. #1
    Registered User
    Join Date
    02-12-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Question How to use a macro to save worksheet as pdf to current folder

    Hi guys,

    This is my first time in this forum. I run a macro that saves a sheet to my desktop as pdf. I want multiple users to have a copy of this excel document and be able to save as PDF to whatever folder they have the excel saved in. Not sure how to do that.

    I included the macro below.

    Thanks,

    Lriver2




    Sub SAVEPDF()
    '
    ' SAVEPDF Macro
    '
    
    '
        ActiveWindow.SmallScroll Down:=-15
        Range("A1:X75").Select
        ChDir "C:\Users\Lriver2\Desktop"
        Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
            "C:\Users\Lriver2\Desktop\Master Sheet.pdf", Quality:= _
            xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
            OpenAfterPublish:=True
    End Sub
    Last edited by lriver2; 02-13-2013 at 03:14 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1