+ Reply to Thread
Results 1 to 6 of 6

SAVE as PDF has a glitch {pulling hair out}

  1. #1
    Registered User
    Join Date
    11-28-2018
    Location
    Charleston, SC
    MS-Off Ver
    365
    Posts
    3

    SAVE as PDF has a glitch {pulling hair out}

    I am running an excel macro that saves it as a PDF. I want it to pop up with a default file name and ask the user if they want to overwrite it. If they say yes, then overwrite, but if they say no, then they should be prompted to change the file name. It does this, but if the user selects save again, then the file saves automatically without confirming if they want to overwrite it.

    It works almost like it is supposed to, but It is doing something weird.

    If you click save as, the pdf save as pops up with the default file name GOOD
    If you try to overwrite the file a message box appears to verify you want to overwrite GOOD
    If you click no to over write, but click save again, the message box does not appear, and it overwrites the file anyways. BAD

    I have taken out all loops I was trying so it would not jumble the code up for you.



    Here is a copy of the code that is whooping my butt. If you have a sec, could you take a look? I owe you big
    Cross Posted on Mr. excel
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 01-22-2019 at 11:15 AM. Reason: edited for code format; added link for cross-post

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: SAVE as PDF has a glitch {pulling hair out}

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.

    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    11-28-2018
    Location
    Charleston, SC
    MS-Off Ver
    365
    Posts
    3

    Re: SAVE as PDF has a glitch {pulling hair out}

    That Is it.
    Wow I was way off on what I needed to fix. Thank you so much. It works great.
    -Adam

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: SAVE as PDF has a glitch {pulling hair out}

    Hi again,

    Many thanks for your feedback.

    You're welcome - glad I was able to help.

    Regards,

    Greg M

  5. #5
    Registered User
    Join Date
    11-28-2018
    Location
    Charleston, SC
    MS-Off Ver
    365
    Posts
    3

    Re: SAVE as PDF has a glitch {pulling hair out}

    Greg,
    It does something funny when you click cancel. It saves the file anyways instead of exiting out. It is not a big deal (in fact we are running it like it is). Do you know why it would do that?
    -Adam

  6. #6
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: SAVE as PDF has a glitch {pulling hair out}

    Hi again Adam,

    Oops - never thought about that possibility!

    The following code should solve the problem, so I'll post it just in case anyone else is interested:

    Please Login or Register  to view this content.

    Regards,

    Greg M

+ 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. Pulling my hair out trying to Round down to 2 dps
    By tonygg9 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2014, 01:45 PM
  2. Newbie pulling my hair out?
    By antilagman in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-10-2014, 12:59 PM
  3. Pulling some more hair out now
    By Farnarkler in forum Excel General
    Replies: 2
    Last Post: 11-18-2008, 09:50 AM
  4. excel formula i'm pulling my hair out
    By murksaxet in forum Excel General
    Replies: 4
    Last Post: 08-01-2006, 03:25 PM
  5. Pulling my hair out
    By Smangler in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2006, 01:35 PM
  6. Pulling my hair out here
    By gtg689a in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-05-2006, 10:42 AM
  7. Pulling my hair out, need some help building a formula
    By Jackanorry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2005, 12:05 PM

Tags for this Thread

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