+ Reply to Thread
Results 1 to 4 of 4

Duplicate Save As Dialog - Word To PDF

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Duplicate Save As Dialog - Word To PDF

    Hi, I am trying to setup a button, which when clicked brings up the save as dialog box but defaults the file save as type to PDF.

    The following is my code:

    Please Login or Register  to view this content.
    When I run this though what happens is the save as dialog box opens twice. First time it doesn't change the save as type if you then save, it brings up the save as dialog box again this time it does default to PDF?

    I can't see how this would happen.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Duplicate Save As Dialog - Word To PDF

    The .Format = wdFormatPDF is telling it to save as a PDF by default. Could you use this instead of the code you have?
    Please Login or Register  to view this content.
    This will open the save as dialog window as excel instead of PDF, and allow users to change the name of the file.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    02-15-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    27

    Re: Duplicate Save As Dialog - Word To PDF

    I am trying to set it is a PDF by default though. What happens is this though:

    Save as Dialog box opens, defaults to word (it is a word document)

    Then if you close or save on this dialog box.

    It Opens a 2nd save as dialog box, this time with default set to PDF.

    I am trying to get rid of the 1st instance of the dialog box.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Duplicate Save As Dialog - Word To PDF

    My bad, I misunderstood the PDF part. Looking at your code, I don't see why it is opening it twice. I ran it on mine and it only opens the one instance of the save as dialog window, and it is set to save as PDF by default.

+ 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. [SOLVED] automatic name in 'save as dialog box' ok, but does not actually save the file?!
    By Pluym in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-02-2012, 10:05 AM
  2. Save as dialog with predefined filename does not save
    By a94andwi in forum Excel General
    Replies: 2
    Last Post: 04-20-2012, 03:23 AM
  3. Save as and the regular save as dialog box appears
    By Jessica.Bush in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2011, 06:57 AM
  4. Export word file prompting a dialog box save location
    By Fossilized in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-05-2011, 03:04 AM
  5. Replies: 2
    Last Post: 03-09-2006, 04:20 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