+ Reply to Thread
Results 1 to 3 of 3

Macro to Save to a PDF, using the contents of a cell as the filename

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Melbourne,Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro to Save to a PDF, using the contents of a cell as the filename

    Hi,
    I have been trying to create a Macro that save the current sheet to a pdf file in a specific directory.
    It all works fine if you specify the "Filename" in the macro, but I have a particular cell that always has a different content based on selections made and it is the content of this cell that I want as the "Filename" that is saved
    Has anybody done this?

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Macro to Save to a PDF, using the contents of a cell as the filename

    hi micwes27, welcome to the forum. just try recording the macro of saving as a PDF & you should get something like this:
    Please Login or Register  to view this content.
    break up the red coloured portion as the cell where you have the filename. for eg, mine is in A1:
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-14-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to Save to a PDF, using the contents of a cell as the filename

    Hi thanks for the code this works fine, but i would like it to save two cells, is this possible?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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