![]() |
|
#7
|
||||
|
||||
|
If you use a checkbox content control titled 'Chk1', for example, and a corresponding text content control titled 'Chk1Inits', you could use a ContentControlOnExit macro like:
Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean)
Application.ScreenUpdating = False
With CCtrl
If .Type = wdContentControlCheckBox Then
With ActiveDocument.SelectContentControlsByTitle(.Title & "Inits")(1)
.LockContents = False
.Range.Text = Application.UserInitials
.LockContents = True
End With
End If
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| check box, initials |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
One Content Control Checkbox checks another Content Control Checkbox
|
DEsh | Word VBA | 2 | 10-06-2017 08:23 PM |
Checkbox in Userform
|
lukael | Excel Programming | 5 | 02-18-2014 05:20 AM |
| checkbox issue | Deepa Shrestha | Word | 3 | 07-24-2013 12:05 PM |
| macro on checkbox | macrohelp | Word VBA | 0 | 03-06-2009 03:33 PM |
| resizing a checkbox?? | aceensor | Excel | 0 | 05-10-2006 01:44 PM |