Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Just another error message
I need some attention!
Bug says "invalid use of null" Private Sub ShowValue(cbo As ComboBox) If cbo.ListIndex = -1 Then Exit Sub lblShow.Caption = cbo.Value *************** End Sub *****this is highlighted area. When I choose from a combo box in a form i have, I would liek to choose and id and in a label it show the name for the id. The cbo works fine if I only have 1 bound column but i need it to have 2 in order to show the correct name in the label. THis is when I run into this error. Thank you so much, Jennifer -- Though daily learning, I LOVE EXCEL! Jennifer |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Just another error message
for column 1 cbo.List(cbo.ListIndex, 1) for column 2 cbo.List(cbo.ListIndex, 2) Mangesh -- mangesh_yadav ------------------------------------------------------------------------ mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470 View this thread: http://www.excelforum.com/showthread...hreadid=379265 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Just another error message
Sorry, i guess i need more help than that. Were do i put that? Thank you for
all your help. -- Though daily learning, I LOVE EXCEL! Jennifer "mangesh_yadav" wrote: for column 1 cbo.List(cbo.ListIndex, 1) for column 2 cbo.List(cbo.ListIndex, 2) Mangesh -- mangesh_yadav ------------------------------------------------------------------------ mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470 View this thread: http://www.excelforum.com/showthread...hreadid=379265 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Just another error message
I guess this is what you need. lblShow.Caption = cbo.List(cbo.ListIndex, 1) & " " cbo.List(cbo.ListIndex, 2) Manges -- mangesh_yada ----------------------------------------------------------------------- mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047 View this thread: http://www.excelforum.com/showthread.php?threadid=37926 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
VBA Error Message "Compile Error...." | Excel Discussion (Misc queries) | |||
Error Message | Excel Discussion (Misc queries) | |||
Excel XP error message Run Time Error 91 | Excel Programming | |||
changing the message in an error message | Excel Worksheet Functions | |||
How do I get rid of "Compile error in hidden module" error message | Excel Discussion (Misc queries) |