Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Ampersand character

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike - 15 Nov 2004 22:05 GMT
I need help using the & character in a combo box list.  I have tried the
code below without success.  The ampersand character will show up on the
form list itself so the person can select it.  Unfortunately it does not
show up in the in the Word field so it not displaying in the document.  It
simply leaves a space where the character should be.  Thanks in advance for
any help you can provide.

   ComboBox1.List() = Array("apple & orange ", " test", "One", "Two",
"Three")

   ComboBox1.List() = Array("apple " + Chr(38) + " orange", "One", "Two",
"Three")
Jean-Guy Marcil - 16 Nov 2004 01:55 GMT
Mike was telling us:
Mike nous racontait que :

> I need help using the & character in a combo box list.  I have tried
> the code below without success.  The ampersand character will show up
[quoted text clipped - 8 lines]
>    ComboBox1.List() = Array("apple " + Chr(38) + " orange", "One",
> "Two", "Three")

I am afraid you are out of luck:

See
http://support.microsoft.com/default.aspx?scid=kb;en-us;125892

The only way around that I can see is to use another character instead of
the & (the * for example) and to replace the * by an ampersand before
sending the text on the document via a macro.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Mike - 16 Nov 2004 21:30 GMT
Oh well, thanks for your response.

> Mike was telling us:
> Mike nous racontait que :
[quoted text clipped - 20 lines]
> the & (the * for example) and to replace the * by an ampersand before
> sending the text on the document via a macro.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.