Ed
Fri Apr 27 04:42:45 CDT 2007
Actually, that is exactly what is happening, but I don't want it to happen.
There is text at the right of the list that I do not want users to see.
That's why I want to set the width of the control to a width that will only
display the 50 left-most characters in any row. Word2007 seems to not let me
do that.
Roy
==============
"Cindy M." <C.Meister-C@hispeed.ch> wrote in message
news:VA.00000d62.011d887f@speedy...
> Hi Roy,
>
>> Set mybar = CommandBars.Add(name:="ColorList", Position:=msoBarTop, _
>> temporary:=True)
>> Set NEWLIST = mybar.Controls.Add(Type:=msoControlDropdown)
>> NEWLIST.Width = 125
>> NEWLIST.DropDownLines = 15
>> For n = 1 To FileCountIs
>> NEWLIST.AddItem ColorIs(n)
>> Next
>>
> Well, after correcting it for missing functions...
>
> I still can't reproduce the problem - I don't see the dropdown list
> extending across the width of the document/Word window/screen. If the
> text is shorter than the width of the control, the dropdown has that
> width. If the text is longer, the dropdown extends so that the text can
> fit.
>
> Any chance your functions are dumping in a lot of empty spaces, thus
> forcing this extreme width?
>
> Cindy Meister
> INTER-Solutions, Switzerland
>
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
>
http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question
> or reply in the newsgroup and not by e-mail :-)
>