+ Reply to Thread
Results 1 to 3 of 3

How to open (Publish as PDF or XPS) Dialog Box by a VBA Code?

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    How to open (Publish as PDF or XPS) Dialog Box by a VBA Code?

    Hi everyone,

    I am using the following code to open (Save As) Dialog Box:

    Please Login or Register  to view this content.

    I am also using the following code to open (Open) Dialog Box:

    Please Login or Register  to view this content.

    However, after installing (Save As PDF Add-In) in MS Office 2007, What is the proper VBA code to open (Publish as PDF or XPS) Dialog Box?

    Temporarily, I am using the following two codes and they work fine, but I think they are not the correct codes for such cases,

    Please Login or Register  to view this content.

    OR
    Please Login or Register  to view this content.

    I appreciate your usual help,

    Best Regards,

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How to open (Publish as PDF or XPS) Dialog Box by a VBA Code?

    See Ron de Bruin's codes
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Re: How to open (Publish as PDF or XPS) Dialog Box by a VBA Code?

    Hi,

    Thank you royUK for your reply,

    I checked Ron de Bruin's codes and I figured out that he used Applicaiton.GetSaveAsFilename in all codes, which works fine but when the same pdf file name is already existing in the folder your are saving the new pdf file in, it dones' give you a warning of that but it overwrites it directly.

    That is why I wanted to know the proper code for open Save as PDF dialog box?

    Regards,

+ 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