Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

How to automatically perform work when Word is opened

 

guide:

To do this, open Word,

then Alt-F11  -> switch to Macro Editor.

1.               Change in the projectarea to : Normal ->Microsoft Word Objects ->ThisDocument

2.               In the editor window, open the left panel and change it to "Document"

3.               In the right selection field select "Open"
then a code block is automatically inserted: Document_Open()

4.               In the Document_Open() code block, insert the macro lines to be executed

 

 

 

Also applies to Excel, PowerPoint, Outlook

 

 

 

Example: automatically set the zoom view resolution to 100 percent

 

Private Sub Document_Open()

    ActiveWindow.ActivePane.View.Zoom.Percentage = 100

End Sub

 

 

 

Mobile

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de