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

Hi,
I have a userform with 2 listbox from whicht the user can choose the start date and the end date.
I put at the activation of the userform in each listbox a series of dates. I would like than when the user choose a date for the start date, the date possible for the end date start by this one. And If the user put in first the end date, I would like than the date available for start date end with this one. My problem is that I don't know how to choose an item from my listbox.
Can you help me ?
Thanks and happy new year
Benjamin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Listbox

Hi Benjamin

You choose value #3 from the top like this:

ListBox1.Listindex = 2

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Ben.c" wrote in message
...
Hi,
I have a userform with 2 listbox from whicht the user can choose the start date and the

end date.
I put at the activation of the userform in each listbox a series of dates. I would like

than when the user choose a date for the start date, the date possible for the end date
start by this one. And If the user put in first the end date, I would like than the date
available for start date end with this one. My problem is that I don't know how to choose
an item from my listbox.
Can you help me ?
Thanks and happy new year
Benjamin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Listbox

Thanks Harald, And Maybe you can answer a second question for me
In the same userform, I would like to put different group of option button. Or if I just put all the one I need, VBA think they are all in the same group, and only one is available. How can I do to have 3 group and so have 3 option button true at the same time
If you can help you are the best lo
Thanks for your hel
Benjamin
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Listbox

Hi again Benjamin

Optionbuttons put in the same "container" is in the same group and only one is True then.
A userform is a container, but so is a Frame control. So put three frames onto the form
and fill each of them with the necessary amount of option buttons.

(This goes for userforms. For controls on worksheets it's somewhere between a little worse
and impossible.)

--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Ben.c" wrote in message
...
Thanks Harald, And Maybe you can answer a second question for me ?
In the same userform, I would like to put different group of option button. Or if I just

put all the one I need, VBA think they are all in the same group, and only one is
available. How can I do to have 3 group and so have 3 option button true at the same time
?
If you can help you are the best lol
Thanks for your help
Benjamin



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
Listbox 2 takes the value of Listbox 1 Illya Teideman Excel Discussion (Misc queries) 3 April 10th 07 03:20 PM
listbox B conditional of input in Listbox A Kim K Excel Discussion (Misc queries) 1 October 31st 06 08:27 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM
Sorting ListBox results or transposing ListBox values to other cells for sorting Rob[_8_] Excel Programming 1 July 9th 03 04:35 AM


All times are GMT +1. The time now is 02:15 PM.

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

About Us

"It's about Microsoft Excel"