+ Reply to Thread
Results 1 to 3 of 3

Userform w/ComboBox

  1. #1
    D.Parker
    Guest

    Userform w/ComboBox

    I have posted this question prior so I thought I would retry. I have created
    a Userform that has a Combobox with various pull-down items. Currently the
    user can change the default value and when they select a value from the pull
    down they can change that also. Is there a way to protect the selections in
    the combobox? I tried the locking property but with no success.

    Also, I have two selections in the pull-down (they are dashed lines used for
    separating groups of options) that I would not like the user to be able to
    select. Is there a way to control that also? Thank you.

    Kind regards,

    D.Parker

  2. #2
    Bob Umlas
    Guest

    Re: Userform w/ComboBox

    THere's a Style property setting for comboboxes:
    0-fmStyleDropDownCombo
    2-fmStyleDropDownList

    you want the 2nd one.

    You can always check if the value chosen is dashes, and if so, change the
    listindex to -1 or some other value, along with a message to the user that
    it's not allowed, but you can't prevent him form selecting it in the first
    place.

    Bob Umlas
    Excel MVP

    "D.Parker" <DParker@discussions.microsoft.com> wrote in message
    news:6788306B-A0E8-4A4F-98EA-668CB709898C@microsoft.com...
    > I have posted this question prior so I thought I would retry. I have

    created
    > a Userform that has a Combobox with various pull-down items. Currently

    the
    > user can change the default value and when they select a value from the

    pull
    > down they can change that also. Is there a way to protect the selections

    in
    > the combobox? I tried the locking property but with no success.
    >
    > Also, I have two selections in the pull-down (they are dashed lines used

    for
    > separating groups of options) that I would not like the user to be able to
    > select. Is there a way to control that also? Thank you.
    >
    > Kind regards,
    >
    > D.Parker




  3. #3
    D.Parker
    Guest

    Re: Userform w/ComboBox

    Thank you very much! I will give this a try.

    Kind regards,

    D.Parker

    "Bob Umlas" wrote:

    > THere's a Style property setting for comboboxes:
    > 0-fmStyleDropDownCombo
    > 2-fmStyleDropDownList
    >
    > you want the 2nd one.
    >
    > You can always check if the value chosen is dashes, and if so, change the
    > listindex to -1 or some other value, along with a message to the user that
    > it's not allowed, but you can't prevent him form selecting it in the first
    > place.
    >
    > Bob Umlas
    > Excel MVP
    >
    > "D.Parker" <DParker@discussions.microsoft.com> wrote in message
    > news:6788306B-A0E8-4A4F-98EA-668CB709898C@microsoft.com...
    > > I have posted this question prior so I thought I would retry. I have

    > created
    > > a Userform that has a Combobox with various pull-down items. Currently

    > the
    > > user can change the default value and when they select a value from the

    > pull
    > > down they can change that also. Is there a way to protect the selections

    > in
    > > the combobox? I tried the locking property but with no success.
    > >
    > > Also, I have two selections in the pull-down (they are dashed lines used

    > for
    > > separating groups of options) that I would not like the user to be able to
    > > select. Is there a way to control that also? Thank you.
    > >
    > > Kind regards,
    > >
    > > D.Parker

    >
    >
    >


+ 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