Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    May 2002
    Location
    Edinburgh, Scotland
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drop Down Fields (Word 97)

    Can you extend the amount of characters you can add to each choice in
    a drop-down form field. We want to have a choice of different
    sentences rather than just individual words. If not - any ideas how
    we can do this?
    <img src=/S/alien.gif border=0 alt=alien width=14 height=15>

  2. #2
    5 Star Lounger
    Join Date
    Jul 2002
    Location
    Toronto, Ontario, Canada
    Posts
    1,139
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Drop Down Fields (Word 97)

    Carolyn,

    Through the DropDown Properties dialog box you can add upto 50 characters.

    If you need more than 50 characters, you will need to add them VIA VBA.

    This is the line of code I used to add the data to the Drop Down:
    <pre>doc.FormFields("Dropdown1").DropDown.ListEntr ies.Add "This is a really really " _
    & "really really really really relallyreally really really really really long " _
    & "sentence.This is a really really really really really really relallyreally " _
    & "really really really really long sentence."
    doc.Protect wdAllowOnlyFormFields</pre>


    As you can see, a Drop Down will take quite a lot of characters in VBA.

    HTH,
    --
    Bryan Carbonnell - Toronto <img src=/S/flags/Ontario.gif border=0 alt=Ontario width=30 height=18> <img src=/S/flags/Canada.gif border=0 alt=Canada width=30 height=18>
    Unfortunately common sense isn't so common!!
    Visit my website for useful Word, Excel and Access code, templates and Add-Ins

  3. #3
    Star Lounger
    Join Date
    Mar 2001
    Location
    St Georges du Bois, Pays de la Loire
    Posts
    84
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Drop Down Fields (Word 97)

    <P ID="edit" class=small>(Edited by gwhitfield on 28-Sep-02 07:02. Hyperlinks added)</P>I would use a userform - see here for more info:

    http://www.mvps.org/word/FAQs/Userfo...eAUserForm.htm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •