+ Reply to Thread
Results 1 to 11 of 11

How to stop the "Save As" warning

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    How to stop the "Save As" warning

    Hi all..


    How can I get rid of the warning - Do you want to save the changes you made to 'hb.xls'? when I try to close the work book?


    Have tried each of the following with no luck

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by heathbo; 09-13-2013 at 09:42 AM. Reason: extra code added

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to stop the "Save As" warning

    Try

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to stop the "Save As" warning

    sorry, no joy

    Please Login or Register  to view this content.
    also, the work book is not closing?

    main part of code if it helps

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to stop the "Save As" warning

    I normally use these line sto close the sourcebook

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to stop the "Save As" warning

    do I just replace my last 4 lines with yours?

    get a run time 424 error - Object required on the sourcebook line

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to stop the "Save As" warning

    Try

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to stop the "Save As" warning

    Nope, asked to save it twice, and still dosn't close

    spread sheet attached
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to stop the "Save As" warning

    Well,
    When I run your code on the attached, I did not get any message. The book closed with out warning.

  9. #9
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to stop the "Save As" warning

    I get it on both ActiveWindow.close & WBSN.close

    have even re booted mt machine to make sure nothing was locking it??????????????????

    The code is in another workbook, hence the *.Active command. Could it be something to do with that

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: How to stop the "Save As" warning

    To be honest with you, I do not know. I have copied the code you posted in #3 with active window command and did not get any message.

  11. #11
    Registered User
    Join Date
    09-05-2013
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: How to stop the "Save As" warning

    ok, well, over the weekend something has happened, just copied the #3 code back in, and now it works


    Will mark this down to an excel "feature"

    Appreciate the help.

+ 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] How to stop warning message in Excel "initialize ActiveX controls"
    By Sya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2006, 05:20 AM
  2. Stop "save changes" message appearing
    By DJ Dusty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2006, 10:42 AM
  3. Stop users from accessing "Protection" option from "Tools" menu
    By I Believe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-19-2005, 10:50 AM
  4. [SOLVED] Stop "Save as" and Copy File
    By maperalia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2005, 01:05 AM
  5. How do I stop the "do you want to save changes" prompt using VB code
    By john928 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2005, 12: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