Consulting

Results 1 to 3 of 3

Thread: How do I display "&" in dependent drop-down in Word?

  1. #1
    VBAX Newbie
    Joined
    Jun 2021
    Posts
    1
    Location

    Unhappy How do I display "&" in dependent drop-down in Word?

    Hi,


    The & shows up in the drop down list when I used "&&" in the name of the field but it does not show up in the document.

    Can you please help me!

    Regards,
    Isha

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Const Amp As String = "&"
    
    MsgBox "This " & Amp & " That"
    Might need
    Dim Amp As String
    Amp = Chr(38)
    Might use
    MsgBox "This " & Chr(38) & " That"
    Or possibly
    MsgBox "This " & "&" & " That"
    Last edited by SamT; 06-14-2021 at 09:01 AM.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Quote Originally Posted by helpplz View Post
    The & shows up in the drop down list when I used "&&" in the name of the field but it does not show up in the document.
    You really haven't provided enough information for a meaningful answer. For example, what type of dropdown are you using - ActiveX, Content Control, Formfield? Are you using VBA code with this? If so please post the relevant portion.

    Can you attach a document to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

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