Bug in 2013 (New Doc; Show FieldCodes; Zoom)

I have found a bug in Word2013 that I can duplicate at will. How do I report this to MS?

Setup:

  1. Create a document in Word 2013. (Doesn't error in 2010 or 2007). (OS doesn't matter. I can duplicate in w7 and w8)
  2. Add a second page. (It must have second page by code, not by length.)  (Ctrl-Enter will do it.)
  3. Add this macro to the document and run the macro.

Sub smallscreen()

     'When run against a two page document, it causes Word to generate

     'a 'small screen' for the next new document.

     ActiveWindow.View.ShowFieldCodes = True

     If ActiveWindow.View.ShowFieldCodes Then ActiveWindow.View.ShowFieldCodes = False

End Sub

    4.. Now create new document (Ctrl-N or File|New). It, and all subsequent documents, will be 'zoomed' to 10%.

I have written a program that has many switches between ShowFieldCodes True/False and this bug is killing me! (If I zoom the new document created in step 4 back to 100%, then subsequent new documents open at 100%, but who wants to have to do that?)

Roy

Answer
Answer

The fix for this bug has been released as KB2883058 as part of the August 2014 updates. If you have Office 365, the fix will be included in the August automatic updates; otherwise it will appear in the August Patch Tuesday downloads in Windows Update or can be obtained from the link above.

I've installed the patch and verified that the zoom problem no longer occurs.

Roy, thank you for reporting the bug!

_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer

Charles, the oApp_NewDocument macro does have to go into a class module, and the declaration of the class and the AutoExec macro that assigns it go into a general module.

A more explicit explanation by Bill Coan is at http://msdn.microsoft.com/en-us/library/aa140279(office.10).aspx#odc_discoverthepowerofapplicationeventprocedures

_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated December 19, 2017 Views 306 Applies to: