I am new to working with VBA and Word 2010.
I have a Word document with some text fields using Content Controls (i.e. rich text control).
I want one of them named (Title) as "testbox" to be a counter of how many times the document has been printed.
I have some code from Excel that works. Is it possible to use this in MS Word? How do I communicate with the Content Control instead of a cell in Excel?
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Cancel = True
Application.EnableEvents = False
ActiveSheet.PrintOut
Range("A1").Value = Range("A1").Value + 1
Application.EnableEvents = True
End Sub