A bug of Microsoft?

zhaozj2021-02-16  45

A bug of Microsoft?

Recently, because of the work, VBA is needed; one day thinks of discovering a bug of Office under accidental operation:

Things are this: I have a Word document, I set up the password for the modification document in the tool -> option -> security, then I save this document again. When this document is opened again, Word prompts me to enter the modification. The password of the document, otherwise this document can only be opened in a read-only mode. I chose to read the way to open. Then I choose Tools -> Mac -> Record new macro. Then just give macro a name called Macro3, then click Tool The column. Then click on the file -> Save the file to another word document. Then select the button to stop recording the macro. Go to Tool -> Macro -> Macro ..., choose the macro 3 of the previous edited , Click Editing Button: The following text will appear:

Sub macro4 () '' Macro4 Macro 'Macro in 2004-7-17 By User XX Recording' ActiveDocument.saves FileName: = "11.doc", fileformat: = _ wdformatdocument, lockcomments: = false, password: = ", AddToRecentFiles: = _ True, WritePassword: = "123456", ReadOnlyRecommended: = False, _ EmbedTrueTypeFonts: = False, SaveNativePictureFormat: = False, SaveFormsData _: = False, SaveAsAOCELetter: = FalseEnd Sub

Pay attention to the text of the different colors above: That line shows the password of the modified document! I tried it on the XP and 2003 version of Office. There is this bug. But the relative Excel doesn't have this bug.

Open this bug is purely to record the problems encountered in my work.

转载请注明原文地址:https://www.9cbs.com/read-15680.html

New Post(0)