#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Comboboxes

How do you restrict the user to select only values listed in the combobox?
(ie. not be allowed to key in his own values)

After that, instead of using the value, as written in the combobox, and
assign it to a variable, I'd like to assign the index number instead. (ie.
choice number 1, 2, etc)

Thanks for the help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Comboboxes

First part, change the style property to 2 fmStyleDropDownList

Second, get the ListIndex property value of the combobox.

--
HTH

Bob Phillips

"Darren" wrote in message
...
How do you restrict the user to select only values listed in the combobox?
(ie. not be allowed to key in his own values)

After that, instead of using the value, as written in the combobox, and
assign it to a variable, I'd like to assign the index number instead. (ie.
choice number 1, 2, etc)

Thanks for the help



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
Comboboxes mr-bear New Users to Excel 1 November 21st 06 10:05 AM
Need help with ComboBoxes. rosemary New Users to Excel 2 July 9th 05 12:19 AM
ComboBoxes Ryan Excel Programming 0 April 14th 04 10:56 PM
Comboboxes Angeliki Excel Programming 1 March 3rd 04 12:00 PM
Comboboxes David W[_3_] Excel Programming 1 August 29th 03 11:13 PM


All times are GMT +1. The time now is 08:52 PM.

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"