Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 05-31-2016, 10:17 PM
Guessed's Avatar
Guessed Guessed is offline Drop down options and controls in a Word form Windows 10 Drop down options and controls in a Word form Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,187
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Where is the address information going to come from? If there is a data store somewhere that can be read by a macro then you could populate the address automatically but we would need to know where that information is going to come from.

A return in vbaspeak is usually vbCr instead of ^p
aString = "some text" & vbCr & "some more text"
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

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
Drop down options and controls in a Word form 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 options and controls in a Word form 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft