+ Reply to Thread
Results 1 to 2 of 2

Drop Down List Box size too small

Hybrid View

  1. #1
    Darin Kramer
    Guest

    Drop Down List Box size too small


    Howdie,

    I have created a macro that launches a drop down list box, problem is
    the list box is to small, left to right, to hold the length of
    charchters I want to include in it, how do I change the length or style
    of the list box....

    Below is extracted code in case it sheds some light....

    Thanks

    D

    ' Set properties of the drop-down list box.
    Set cbcCommandBarListBox = _
    .Add(Type:=msoControlDropdown)
    With cbcCommandBarListBox
    .AddItem " .Add new sample"
    .AddItem " .Modify exisiting sample"
    .ListIndex = 1
    .Caption = "I want to.."
    .Style = msoComboLabel
    .BeginGroup = True
    .OnAction = "LaunchMacro_comment"
    .Tag = "lstSet_Sample_size"
    End With


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  2. #2
    Tom Ogilvy
    Guest

    Re: Drop Down List Box size too small

    The CommandBarCombobox has a width property. Try setting that to something
    wider.

    --
    Regards,
    Tom Ogilvy

    "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    news:eQP0H9eCFHA.520@TK2MSFTNGP09.phx.gbl...
    >
    > Howdie,
    >
    > I have created a macro that launches a drop down list box, problem is
    > the list box is to small, left to right, to hold the length of
    > charchters I want to include in it, how do I change the length or style
    > of the list box....
    >
    > Below is extracted code in case it sheds some light....
    >
    > Thanks
    >
    > D
    >
    > ' Set properties of the drop-down list box.
    > Set cbcCommandBarListBox = _
    > .Add(Type:=msoControlDropdown)
    > With cbcCommandBarListBox
    > .AddItem " .Add new sample"
    > .AddItem " .Modify exisiting sample"
    > .ListIndex = 1
    > .Caption = "I want to.."
    > .Style = msoComboLabel
    > .BeginGroup = True
    > .OnAction = "LaunchMacro_comment"
    > .Tag = "lstSet_Sample_size"
    > End With
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1