+ Reply to Thread
Results 1 to 13 of 13

Disable Prompt when SaveAs (New Workbook)

  1. #1
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Disable Prompt when SaveAs (New Workbook)

    The following code asks for a prompt and ignores all the parameters in the SaveAs method:

    Please Login or Register  to view this content.
    I want to disable the standard SaveAs dialog box when I do this.

    Thank you

  2. #2
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    Hi ntitled,

    Welcome to the Forum!

    Have you tried putting:

    Please Login or Register  to view this content.
    .. before the SaveAs?

    Don't forget to set it back to true before the End Sub.

    Hope this helps.
    ----
    Mark threads as Solved
    Star those that help

  3. #3
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    Hi Steve,

    Thanks for the prompt reply!

    Yes I've added:

    Please Login or Register  to view this content.
    And added the ...=True before the End Sub.

    I'm still being prompted with the standard SaveAs dialog box.

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    Hmm .. for me it runs and saves whether I use the original code you posted or

    Please Login or Register  to view this content.
    I do not get a SaveAs dialog either way.

    Let me dig a little .. but normally disabling the Alerts will do the trick.

  5. #5
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    I created a new workbook with the code and it still didn't work.

    The following is my Excel version if it helps: 14.0.6023.1000 (32-bit).

    Thanks again

  6. #6
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    I have been trying to duplicate the problem you are having and I am unable to get Excel to prompt me with a save as dialog.

    Is there a chance you can post your workbook?

  7. #7
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    I can't upload it at the moment (I will when I get home) but even when I try to save an unsaved workbook with a macro, I get the SaveAs dialog box.

    Please Login or Register  to view this content.
    ...HOWEVER, I do not get a dialog box when I use the .SaveAs method with a workbook that has been saved with a different name.

  8. #8
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    I tried the same code snippet from home and it worked. I'm assuming it has to do with a plug in installed at my work computer.

  9. #9
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    Good to know I wasn't totally losing my mind as to how that should have worked.

  10. #10
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    Thank you for all your help thus far!

    The reason for why I am being prompted with a SaveAs dialog box is from a plugin called eDocs DM.

    As I am debugging the .SaveAs method, I noticed that Excel goes into the following EventClassModules when I Step In:


    Please Login or Register  to view this content.
    ...then into


    Please Login or Register  to view this content.
    Then the SaveAs dalog box appears.

    Is there a way to override the plugin (without disabling it) and make the workbook behave as if the plugin didn't have a App_WorkbookBeforeSave method?

  11. #11
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    I do not have any plugins to make sure .. but try this

    Please Login or Register  to view this content.
    Setting enableevents to false should stop the plugin.

  12. #12
    Registered User
    Join Date
    03-05-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Disable Prompt when SaveAs (New Workbook)

    Wow.

    This is awesome, thank you so much!

  13. #13
    Forum Contributor
    Join Date
    11-13-2013
    Location
    United States
    MS-Off Ver
    2010
    Posts
    147

    Re: Disable Prompt when SaveAs (New Workbook)

    You are quite welcome.

    Glad we got it working!


    ------------------
    Be sure to mark the thread as Solved
    Click the star to show you appreciate the help everyone has provided

+ 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. Export active worksheet as CSV with SaveAs prompt
    By GFIJames in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2013, 08:48 AM
  2. Replies: 0
    Last Post: 04-11-2012, 09:52 AM
  3. How can do a saveAs w/o getting a prompt?
    By gpsmith in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2009, 01:22 PM
  4. [SOLVED] Help with SaveAs prompt
    By juggler in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2006, 04:35 PM
  5. Unexpected SaveAs prompt for workbooks with pivot tables
    By KentL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2005, 06:05 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