![]() |
|
#7
|
||||
|
||||
|
You can handle multiple CCs by using a Select Case or ElseIf. Personally, I find the Select Case to be a bit more flexible so an example would be
Code:
Private Sub Document_ContentControlOnExit(ByVal CCtrl As ContentControl, Cancel As Boolean)
Dim i As Long, j As Long, StrDetails As String
With CCtrl
Select Case .Title
Case "Client"
'do something
Case "Client1", "Client2", "Client3"
'do something else
End Select
End With
End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How do I add selection of multi line content control list to specific table cell
|
Dudlee | Word VBA | 1 | 09-20-2016 04:58 PM |
Edit table in content control
|
denise do rocio maciel | Word VBA | 2 | 01-03-2016 11:59 PM |
| How-to: Add a quickpart, field or Building Block Gallery Content Control based on a UserForm | HighSierra | Word VBA | 0 | 05-06-2015 08:20 PM |
| Combo Box Content Control Calculate on selection help | ciresuark | Word | 0 | 03-06-2015 01:49 PM |
Deleting a table from a content control -- preserving the content control
|
BrainSlugs83 | Word Tables | 8 | 11-14-2013 03:06 AM |