A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Listbox text properties



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2004, 05:21 PM
mariatherp
external usenet poster
 
Posts: n/a
Default Listbox text properties


Hi There,

I am creating a form letter with a drop-down formfield that has only
three entries. The text of one of the entries is longer than allowed.
How can I change the properties?

Thanks,

Maria


------------------------------------------------
~~ Message posted from http://www.WordForums.com/
  #2  
Old April 30th, 2004, 10:44 AM
Doug Robbins - Word MVP
external usenet poster
 
Posts: n/a
Default Listbox text properties

You can't. But you might be able to make use of the following:

' Macro created 15-11-97 by Doug Robbins to add the address corresponding to
a drop down name
'
Set myDrop = ActiveDocument.FormFields("Dropdown1").DropDown
Company = myDrop.ListEntries(myDrop.Value).Name
Address = ActiveDocument.AttachedTemplate.AutoTextEntries(Co mpany).Value
ActiveDocument.FormFields("Text1").Result = Address


--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
"mariatherp" wrote in message
...

Hi There,

I am creating a form letter with a drop-down formfield that has only
three entries. The text of one of the entries is longer than allowed.
How can I change the properties?

Thanks,

Maria


------------------------------------------------
~~ Message posted from http://www.WordForums.com/


  #3  
Old May 4th, 2004, 02:37 PM
mariatherp
external usenet poster
 
Posts: n/a
Default Listbox text properties


Hi Doug,

Thanks so much for your help. I used this code:

Public Sub add_listentry()
With Documents("POA NR - NO COVERAGE CHG.doc").FormFields("dropdown1")
_
.DropDown.ListEntries
.Add Name:="Power of Attorney and Declaration of Attorney-in-Fact"
End With
End Sub

I have another question? When the user selects this text from the
listbox the text moves down to the next line. How would I left justify
the selection?

Thanks,

Maria


------------------------------------------------
~~ Message posted from http://www.WordForums.com/
  #4  
Old May 4th, 2004, 02:37 PM
mariatherp
external usenet poster
 
Posts: n/a
Default Listbox text properties


Hi Doug,

Thanks so much for your help. I used this code:

Public Sub add_listentry()
With Documents("POA NR - NO COVERAGE CHG.doc").FormFields("dropdown1")
_
.DropDown.ListEntries
.Add Name:="Power of Attorney and Declaration of Attorney-in-Fact"
End With
End Sub

I have another question? When the user selects this text from the
listbox the text moves down to the next line. How would I left justify
the selection?

Thanks,

Maria


------------------------------------------------
~~ Message posted from http://www.WordForums.com/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.