+ Reply to Thread
Results 1 to 7 of 7

Create pdf file name based on value of certain cells

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Create pdf file name based on value of certain cells

    Hello:

    I have excel sheet which generates a paid receipt.
    I like to store this receipt as a pdf file.
    The name of the pdf file would need be created by the values in certain cell.
    (Remember that values in cell are populated from other part of the worksheet)

    I8_E10_E15

    Example :
    Value in I8 = 14-May-12
    Value in E10 = John Doe
    Value in E15 = [email protected]

    PDF file name need to be :

    14-May-12_John [email protected]

    Can you please help with this by either having a VB Macro or some other alternatives

    Please let me know if any questions.


    Thanks in advance for your help.

    Riz

  2. #2
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Create pdf file name based on value of certain cells

    Please Login or Register  to view this content.
    adapt this code to refelect your preferred cell references Range R1 and Range N1 are two used in this method

    I see in excel 2007 anyway that you can save in pdf format as an option in SaveAs

    Might be worth recording the macro and see what it gives you as a save option
    Last edited by nigelog; 06-06-2012 at 12:32 PM.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Create pdf file name based on value of certain cells

    this will give you the pdf file as an option, you'll have to play around with it as I cant test it
    Please Login or Register  to view this content.
    Last edited by nigelog; 06-06-2012 at 12:45 PM.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file name based on value of certain cells

    Hi:

    Help me further.
    This excel file is named "Receipt_For_Members"
    It has 5 sheets and 1 f them is called "Receipt"

    RM

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file name based on value of certain cells

    Hi:

    I have attached excel sheet for referance.
    To get the receipt, i go to Receipt sheet and enter the Receipt # in cell I8 (Receipt # is chosen from "Donation" sheet.
    Once Receipt# is entered in cell I8, the other information is populated and now i need this to be printed as Receipt as pdf file.
    So basically, i would have 1 pdf file for each donation receipt.
    Please let me know if you have any other questions.

    Thanks in advance.

    Riz
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file name based on value of certain cells

    Hi:

    I am hoping that some expert will help with this solution.
    Please let me know if you have any questions.
    Thanks in advance for helping.

    Riz

  7. #7
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Create pdf file name based on value of certain cells

    Hello:

    Can some one help with this thread.
    Would really appreciate if someone will help.
    Thanks a lot in advance.

    Riz

+ 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