Share via

Error on opening

Anonymous
2018-10-28T12:10:02+00:00

Word 2016 and Windows 10

When I open a Word document I get the error message “Code execution has been interrupted”. Debug then points to the ActiveWindow statement in the AutoOpen macro:

Sub AutoOpen()

    ActiveDocument.Fields.Update

    ActiveWindow.ActivePane.View.Zoom.Percentage = 115

End Sub

What's wrong with this macro?

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2018-10-28T13:55:54+00:00

    Do you want to use the macro? If you want to use the macro, then safe mode & disabling macros isn't the solution. You don't want to use this macro, you can comment out those lines. and click save.

    Does pressing F5 clear the error and finish running the macro?

    Have you rebooted the computer since the problem started? If a macro is in break mode, rebooting clears it. Pressing Ctrl+Break twice may also clear it.

    Have you tried the quick repair option in Settings > Apps& Features?

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more