LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default List box value problem

I have several list boxes on a user form, with option buttons. For most of
the listboxes I retrieve the selected value like this (for listbox "lbShift"):

Private Sub lbShift_Click()
Shift = lbShift.Value
End Sub

This works well and behaves as I expected. I then added one more listbox and
tried to get the value the same way:

Private Sub lbNumHours_Click()
NumHours = lbNumHours.Value
End Sub

But a value never gets assigned to NumHours. I've compared everything I can
think of between the different list boxes and can't figure out why most of
them work, but the one I added today doesn't. If I edit the Sub I'm using it
in to use "lbNumHours.Value" instead of "NumHours" it works. Why?
 
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
List Problem--Please help? Frank_Horbelt Excel Discussion (Misc queries) 1 December 12th 06 08:07 PM
List Problem--Please Help! Frank_Horbelt Excel Programming 0 December 12th 06 05:30 PM
List box problem TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 28th 06 06:34 AM
List Box Problem ZipCurs Excel Programming 4 June 29th 06 12:10 AM
LIst Problem Debby Bunce Excel Worksheet Functions 0 March 27th 06 07:49 PM


All times are GMT +1. The time now is 05:37 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"