Skip to content

Commit

Permalink
Added AutoOpen vs Auto_Open details in comments
Browse files Browse the repository at this point in the history
If you are deploying this against Office365/2016+ versions of Word you need to modify the first line of the output:

From:
Sub Auto_Open()

To
Sub AutoOpen()

The name of the macro itself must also be "AutoOpen" instead of the legacy "Auto_Open" naming scheme
  • Loading branch information
craigdods committed Mar 20, 2017
1 parent 19d5cdd commit 36b1127
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ def custom_ps1_help():
The last one will use a 500 character string instead of the default 380, resulting in less carriage returns in VBA.
If you are deploying this against Office365/2016+ versions of Word you need to modify the first line of the output:
From:
Sub Auto_Open()
To
Sub AutoOpen()
The name of the macro itself must also be "AutoOpen" instead of the legacy "Auto_Open" naming scheme
[*******************************************************************************************************]
""")

Expand Down

0 comments on commit 36b1127

Please sign in to comment.