Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Validate Combobox entry

Hi,
Please could someone advise if it is possible to prevent a user from
entering free text into a combobox?. If so, are there any examples
available, I have searched around the 'net but it is not clear.

Mickey


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Validate Combobox entry

"MBlake" wrote in message
...
Hi,
Please could someone advise if it is possible to prevent a user from
entering free text into a combobox?. If so, are there any examples
available, I have searched around the 'net but it is not clear.


Hi Mickey,

If you're talking about a Controls toolbar ComboBox (the same kind you
put on UserForms) then just change its Style property to "2 -
fmStyleDropDownList" in the Properties window. This style only allows the
user to select items already in the list. If you type into a ComboBox
control with this style it attempts to find a matching item in the existing
list by default. You can modify this behavior using the MatchEntry property
of the ComboBox.

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Validate Combobox entry

Hi Rob,
Excellent, many thanks for your kind help. I am as you can see a newcomer
to Excel Userforms. I have been considering Professional Excel Development
which I believe you worked on, if so can you say if the book is just for
experts or will it be of some support to me?

Cheers,
Mickey


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Validate Combobox entry

"MBlake" wrote in message
...
Hi Rob,
Excellent, many thanks for your kind help. I am as you can see a newcomer
to Excel Userforms. I have been considering Professional Excel
Development which I believe you worked on, if so can you say if the book
is just for experts or will it be of some support to me?


Hi Mickey,

I'd wait until you have a good grounding in Excel VBA before diving into
Professional Excel Development. A better starting place would be our
previous book The Excel 2002 VBA Programmer's Reference. Don't worry about
the Excel version number in the title, virtually everything covered in that
book works in all current versions of Excel. Also, skip the 2003 version of
the book, which has our names on it but which we did not contribute to (long
story).

--
Rob Bovey, Excel MVP
Application Professionals
http://www.appspro.com/

* Take your Excel development skills to the next level.
* Professional Excel Development
http://www.appspro.com/Books/Books.htm


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Validate Combobox entry

Thanks Rob,
One Programmers Reference purchased.

Mickey




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Validate Combobox entry

Hi Rob,
What a great book choice that was, the book is excellent and a great help.
Thanks for the suggestion.

Mickey


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validate entry based on another cell value Dearoledad Excel Discussion (Misc queries) 3 May 15th 09 10:47 PM
Validate date entry in a text box. GoBow777 Excel Discussion (Misc queries) 0 July 30th 08 08:46 PM
Validate Email address entry Rayasiom Excel Discussion (Misc queries) 2 May 31st 07 10:36 AM
Validate Textbox entry David Seebaran Excel Programming 3 April 18th 04 06:26 PM
how to validate a combobox? clay Excel Programming 6 December 19th 03 05:26 PM


All times are GMT +1. The time now is 03:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"