![]() |
|
#3
|
||||
|
||||
|
You can use a macro to allow the user to add an entry to the dropbox. An example would be
Code:
Private Sub Document_ContentControlOnExit(ByVal aCC As ContentControl, Cancel As Boolean)
Dim sName As String
If aCC.Range.Text = "Add another..." Then
sName = InputBox("What name do you want to add?")
aCC.DropdownListEntries.Add sName
aCC.Range.Text = sName
End If
End Sub
A return in vbaspeak is usually vbCr instead of ^p aString = "some text" & vbCr & "some more text"
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
| Tags |
| content control, forms |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Form with content controls - expands but at the bottom of the form | louiseword | Word | 3 | 05-27-2016 12:47 AM |
Problem transferring form controls from excel to word
|
pluqk | Word | 1 | 11-19-2015 07:23 PM |
| Form Controls - Calculation Options | Perk | Word | 17 | 09-18-2015 06:55 AM |
Drop down lists options
|
inq80 | Excel | 2 | 10-17-2014 08:05 AM |
| Word Forms - Active X Controls - Drop Down Menu Value Assignments | AMackenzieFFCU | Word | 0 | 01-04-2013 08:25 AM |