ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Non-Editable ComboBox? (https://www.excelbanter.com/excel-programming/301705-non-editable-combobox.html)

NooK

Non-Editable ComboBox?
 
I am quite new to VBA and I am writing a program which have a couple of
ComboBoxes and those comboBoxes are not to be editable.

I have looked everywhere on the net and couldn't find it.

How can I make them not editable so the user can only choose the
choices in the box and not be able to write anything in it?

I tried setting Locked property to True but then I can't select
anything (When I click on the arrow down it doesn't do anything).

Hope someone can help me.

Best Regards

NooK


---
Message posted from http://www.ExcelForum.com/


Harald Staff

Non-Editable ComboBox?
 
Hi NooK

Set the Style property to "List" instead of "Combo".

HTH.Best wishes Harald

"NooK " skrev i melding
...
I am quite new to VBA and I am writing a program which have a couple of
ComboBoxes and those comboBoxes are not to be editable.

I have looked everywhere on the net and couldn't find it.

How can I make them not editable so the user can only choose the
choices in the box and not be able to write anything in it?

I tried setting Locked property to True but then I can't select
anything (When I click on the arrow down it doesn't do anything).

Hope someone can help me.

Best Regards

NooK


---
Message posted from http://www.ExcelForum.com/




Hank Scorpio

Non-Editable ComboBox?
 
On Thu, 17 Jun 2004 05:01:24 -0500, NooK
wrote:

I am quite new to VBA and I am writing a program which have a couple of
ComboBoxes and those comboBoxes are not to be editable.

I have looked everywhere on the net and couldn't find it.

How can I make them not editable so the user can only choose the
choices in the box and not be able to write anything in it?

I tried setting Locked property to True but then I can't select
anything (When I click on the arrow down it doesn't do anything).


It's not the Locked property, but rather the MatchRequired property
that you need to set to True.

---------------------------------------------------------
Hank Scorpio
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
* Please keep all replies in this Newsgroup. Thanks! *

NooK[_2_]

Non-Editable ComboBox?
 
Thanks a lot. The Style did it.

Best Regards

Noo

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 01:11 AM.

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