+ Reply to Thread
Results 1 to 4 of 4

Define PDF export name

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Define PDF export name

    Hi All,

    I use the following (part of the) VBA code to define the name of the pdf file i'm exporting.

    Please Login or Register  to view this content.
    I want to remove the code that uses the filename of the excelfile and use a generic name instead (for example: "Orderconfirmation" & "_" & ActiveSheet.Range("N11") etc etc. )
    Is there a way to do this?

    Thanks!

  2. #2
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Re: Define PDF export name

    Full code here;

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    28

    Re: Define PDF export name

    Hi There,
    Can someone help with this code?

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Define PDF export name

    Use this to define the name. Change D:\ to path to suit.
    Please Login or Register  to view this content.
    Adapt this to retrieve the attachment.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need to define a search or define instruction to extract parts of data from cell
    By Dawn Clark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2021, 02:45 AM
  2. Export only selected pages define in a sheet using checkbox's on a form
    By davitali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2018, 06:15 PM
  3. [SOLVED] Getting compile error user-define type not define
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2015, 07:22 AM
  4. keep getting a application define or object define runtime error
    By JRJLHJ1823 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-22-2015, 08:55 PM
  5. Getting error user define type not define
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-26-2013, 10:55 PM
  6. error 1004 application define or object define
    By jay11 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-11-2011, 04:09 AM
  7. Define named range where user can define size
    By nahousto in forum Excel General
    Replies: 4
    Last Post: 07-06-2009, 05:09 PM

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