View Single Post
 
Old 11-27-2014, 12:24 PM
Martin77 Martin77 is offline Windows 7 32bit Office 2013
Novice
 
Join Date: Nov 2014
Posts: 2
Martin77 is on a distinguished road
Default Macro not starting from other documents

Hallo,

This Code

Code:
Private Sub document_contentcontrolonenter(ByVal ContentControl As ContentControl)
MsgBox "Hallo, I am " & ContentControl.Tag
End Sub
works within the template where it is stored.
When I click within the document the check box with the Tag "Martin"
the message comes with "Hallo, I am Martin"

Please see attached file.

The template is saved in
AppData\Roaming\Microsoft\Word\STARTUP

Any macros in any dotm-documents is this directory work with all documents.

This macro does not.

Why is that so?

How can I make it enable for all documents?

Best regards,
Martin
Attached Files
File Type: dotm Grauzone.dotm (17.5 KB, 12 views)
Reply With Quote