#1   Report Post  
Posted to microsoft.public.word.docmanagement
Nick2006
 
Posts: n/a
Default Combo Box

I am new visual basic, I want to add a combo box to a word document, so that
a user can select from a drop-down menu, I used to use office 2000 and
entered the values I wanted. Upgraded to Office XP, when I add the values I
want to appear, nothing happened. Please help!!!
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Charles Kenyon
 
Posts: n/a
Default Combo Box

Don't mess with anything on the Controls Toolbar until you know what you are
doing with vba. These are programming controls. You can put a drop-down menu
in your document using the Forms toolbar. Start with that. This is what Word
calls an "online form." Check this in help. For more about online forms,
follow the links at http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customizat...nTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFl...nesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"Nick2006" wrote in message
...
I am new visual basic, I want to add a combo box to a word document, so
that
a user can select from a drop-down menu, I used to use office 2000 and
entered the values I wanted. Upgraded to Office XP, when I add the values
I
want to appear, nothing happened. Please help!!!



  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey
 
Posts: n/a
Default Combo Box

Something like:

Sub AutoNew()
Dim myCB As ComboBox
Set myCB = ThisDocument.myCB
With myCB
.Clear
.AddItem "A"
.AddItem "B"
.AddItem "etc."
End With
End Sub

and in and AutoOpen macro.
--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Nick2006 wrote:
I am new visual basic, I want to add a combo box to a word document,
so that a user can select from a drop-down menu, I used to use office
2000 and entered the values I wanted. Upgraded to Office XP, when I
add the values I want to appear, nothing happened. Please help!!!



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
Combo Box Weste Microsoft Word Help 1 March 31st 06 09:43 PM
Cut and paste contents of combo box to non word program mortalkris Microsoft Word Help 1 February 2nd 06 04:26 PM
Multiple combo boxes in Word weim10 Microsoft Word Help 0 September 16th 05 08:18 AM
Create Protected Word template that uses combo box & combo box val Cindy Microsoft Word Help 1 April 1st 05 05:10 PM
how do i add text to a combo box in word? Johnnyh10 Microsoft Word Help 1 March 30th 05 04:27 PM


All times are GMT +1. The time now is 05:55 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"