![]() |
|
#1
|
||||
|
||||
![]()
For example:
Code:
Private Sub AutoClose() Dim CCtrl As ContentControl, Cancel As Boolean: Cancel = False With ActiveDocument For Each CCtrl In .ContentControls If CCtrl.ShowingPlaceholderText = True Then Cancel = True: CCtrl.Range.Select: Exit For Next If Cancel = True Then MsgBox "Please complete all the items" .Saved = False SendKeys "{ESC}" End If End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jsc_msoffice | Word VBA | 2 | 05-21-2021 09:51 PM |
![]() |
ashleyf | Word VBA | 2 | 03-19-2020 09:11 AM |
Content Control content deleted when re-uploading to SharePoint | Peterson | Word | 5 | 06-27-2018 08:13 PM |
![]() |
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
![]() |
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |