ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Preventing Writing in Combo Boxes (https://www.excelbanter.com/excel-programming/302686-preventing-writing-combo-boxes.html)

Stan

Preventing Writing in Combo Boxes
 
Hi All,

I have a series of combo boxes and want to ensure people only select what is given in the boxes. I have set the matchtype to 'complete' and 'true' however am still able to write in what I like which in turn puts the wrong value elsewhere.

Is there any means of preventing people writing in what they like? Or am I missing something with what I've done?

Any help would be greatly appreciated.
Thanks,

Stan


William[_2_]

Preventing Writing in Combo Boxes
 
Hi Stan

Within VB, select the combobox and then go to the combobox properties.
Change the style from "fmStyleDropDownCombo" to "fmStyleDropDownList"

--
XL2002
Regards

William



"Stan" wrote in message
...
| Hi All,
|
| I have a series of combo boxes and want to ensure people only select what
is given in the boxes. I have set the matchtype to 'complete' and 'true'
however am still able to write in what I like which in turn puts the wrong
value elsewhere.
|
| Is there any means of preventing people writing in what they like? Or am I
missing something with what I've done?
|
| Any help would be greatly appreciated.
| Thanks,
|
| Stan
|



Stan

Preventing Writing in Combo Boxes
 
Hi William,

That's spot on - cheers!

Stan

"William" wrote:

Hi Stan

Within VB, select the combobox and then go to the combobox properties.
Change the style from "fmStyleDropDownCombo" to "fmStyleDropDownList"

--
XL2002
Regards

William



"Stan" wrote in message
...
| Hi All,
|
| I have a series of combo boxes and want to ensure people only select what
is given in the boxes. I have set the matchtype to 'complete' and 'true'
however am still able to write in what I like which in turn puts the wrong
value elsewhere.
|
| Is there any means of preventing people writing in what they like? Or am I
missing something with what I've done?
|
| Any help would be greatly appreciated.
| Thanks,
|
| Stan
|





All times are GMT +1. The time now is 12:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com