Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
word challenged word challenged is offline
external usenet poster
 
Posts: 2
Default how do I enter a list in a list box or a combo box

hi i am trying to enter a list of names into either a list box or a combo box
but i can not find out how to do it... can anybody help please...
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default how do I enter a list in a list box or a combo box

On 31/05/2010 11:42 AM, word challenged wrote:
hi i am trying to enter a list of names into either a list box or a combo box
but i can not find out how to do it... can anybody help please...

See the following page of Greg Maxey's website:

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm

If it's an ActiveX combobox that you haved inserted directly into the
document, right click on it and select View Code and use code such as

Private Sub ComboBox1_GotFocus()
With ComboBox1
.Clear
.AddItem "myfirstitem"
.AddItem "myseconditem"
'etc
.AddItem "mylastitem
End WIth
End Sub

If it is a Content Control, select it and click on the Properties button
in the Developer tab of the Ribbon and you can add the items into the
Content Control Properties dialog that appears.
--
Hope this helps,
Doug Robbins - Word MVP
Please reply to the newsgroup unless you want to obtain my services on a
professional basis.
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default how do I enter a list in a list box or a combo box

On 31/05/2010 11:42 AM, word challenged wrote:
hi i am trying to enter a list of names into either a list box or a combo box
but i can not find out how to do it... can anybody help please...

See the following page of Greg Maxey's website:

http://gregmaxey.mvps.org/Populate_UserForm_ListBox.htm

If it's an ActiveX combobox that you haved inserted directly into the
document, right click on it and select View Code and use code such as

Private Sub ComboBox1_GotFocus()
With ComboBox1
.Clear
.AddItem "myfirstitem"
.AddItem "myseconditem"
'etc
.AddItem "mylastitem
End WIth
End Sub

If it is a Content Control, select it and click on the Properties button
in the Developer tab of the Ribbon and you can add the items into the
Content Control Properties dialog that appears.
--
Hope this helps,
Doug Robbins - Word MVP
Please reply to the newsgroup unless you want to obtain my services on a
professional basis.
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop_down list box and Combo box Amin New Users 2 February 15th 09 08:06 PM
combo box- drop down list MEME Microsoft Word Help 1 December 23rd 07 02:14 AM
Macro for combo/drop down list ah Microsoft Word Help 12 October 3rd 07 01:35 PM
Have a Combo Box list populate external data jlawson Microsoft Word Help 6 January 19th 07 08:12 PM
Create the list for combo box for Word 2003 okeanaman New Users 1 August 4th 06 04:46 PM


All times are GMT +1. The time now is 06:41 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"