Excel document exits without prompting for save what is it?

Source: Internet
Author: User
Tags time interval microsoft help

Excel document exits without prompting for save what is it?

There's something wrong with my excel2007. After the file is edited, the exit does not prompt "save", search the Internet, someone asked the same Excel question, many of the answers are said to change the "Save AutoRecover information time interval", or to reload office, there is no other fix this problem effective answer, Finally, in the Microsoft Help website HTTP://SUPPORT.MICROSOFT.COM/KB/213513/ZH-CN found 2 solutions, one is to press CTRL + S to save changes, and then close the workbook, this method can save changes, But can not solve the problem of Excel, the second way to effectively solve the issue, the following steps can be restored:

1, start Excel and create a new workbook.

2, press ALT + F11 to open the Visual Basic editor. (Note This step: if you press ALT + F11 does not eject the Visual Basic Editor window, it is definitely not installed and requires the Office Setup Disk Setup editor)

3, click the Module on the Insert menu. (or simply double-click the "Sheet1" or other sheet on the left "Project Explorer"), figure

4, the new module type the following code.

Copy Content to Clipboard

Sub Caption_macro ()

'

' More code here.

'

' Changes the Caption property of the '

Windows (1). Caption = "Window 1"

' Setting that the workbook has changed.

activeworkbook.saved = False

'

' More code here.

'

End Sub

5, run the code above, the Operation method: Click on the Green Triangle button (similar to the play button, see the figure in the red circle callout), or press the F5 key on the keyboard, pop-up Run Macro dialog box, select the macro Caption_macro, and then click Run.

6, and then press ALT + F11 switch to Excel.

7, click Close. At this point you can see that you are prompted to save the workbook.

Open a few Excel documents at random, try to lose a few numbers, and then quit, everything back to normal.

Tip: "Macro" successfully run, you can delete that piece of code, or quit when you do not choose to "save", that is, do not save that piece of code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.