Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ARB ARB is offline
external usenet poster
 
Posts: 2
Default listbox.value not equal to listbox.list(listbox.listindex,0)

Odd...

learning vba in excel...

I have set up a list box.

Have selected a default value by setting listbox.listindex

If the user tabs through the selection boxes... (six listboxes on
userform)... all is well.

If the user just hits the "accept" button... listbox.value is
sometimes empty string.

i used watch in debug... and found the following for a 12 x 1 array


listbox.listindex = 3

listbox.list(3,0) = "aaa"

listbox.value = ""

listbox.list(listbox.listindex,0) = "aaa"



it is not 100 percent consistant which of the six listboxes on the
form will screw up. But at least one of the six will every time.

I figure it is a timing/update thing... or something very simple that
i am doing wrong.

any help would be appreciated folks... thank you


Andrew Blair
Marietta, Ohio
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 B if LIstbox A equals Kim K Excel Discussion (Misc queries) 2 October 31st 06 07:03 PM
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 11:38 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"