Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error 94
This is the error I can't seem to fix
Null value? Private Sub ShowValue(cbo As ComboBox) If cbo.ListIndex = -1 Then Exit Sub lblShow.Caption = cbo.Value -- Though daily learning, I LOVE EXCEL! Jennifer |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error 94
Can you show all the code, how the combo is loaded etc.?
-- HTH RP (remove nothere from the email address if mailing direct) "Jennifer" wrote in message ... This is the error I can't seem to fix Null value? Private Sub ShowValue(cbo As ComboBox) If cbo.ListIndex = -1 Then Exit Sub lblShow.Caption = cbo.Value -- Though daily learning, I LOVE EXCEL! Jennifer |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error 94
Thanks Bob,
I figured it out though. When I changed the boundcolumns in the properties from 1 to 2 this error happened. Once I changed it back to 1 all was good. Do you have any idea why this happened, it didn't seem to affect the other combo box that I switched. Just the ranch id cbo Thank you again. Jennifer "Bob Phillips" wrote: Can you show all the code, how the combo is loaded etc.? -- HTH RP (remove nothere from the email address if mailing direct) "Jennifer" wrote in message ... This is the error I can't seem to fix Null value? Private Sub ShowValue(cbo As ComboBox) If cbo.ListIndex = -1 Then Exit Sub lblShow.Caption = cbo.Value -- Though daily learning, I LOVE EXCEL! Jennifer |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Error 94
If you have a single column combobox, then designating the boundcolumn as 2
would refer to a column that doesn't exist. What would be the intent of designating column 2 if it is single column? Boundcolumn = 0 returns listindex as the value of the combobox Boundcolumn = 1 returns the selected row of column 1 as the value of the combobox and so forth. Why would it work on other comboboxes - you may actually have more than one column. -- Regards, Tom Ogilvy "Jennifer" wrote in message ... Thanks Bob, I figured it out though. When I changed the boundcolumns in the properties from 1 to 2 this error happened. Once I changed it back to 1 all was good. Do you have any idea why this happened, it didn't seem to affect the other combo box that I switched. Just the ranch id cbo Thank you again. Jennifer "Bob Phillips" wrote: Can you show all the code, how the combo is loaded etc.? -- HTH RP (remove nothere from the email address if mailing direct) "Jennifer" wrote in message ... This is the error I can't seem to fix Null value? Private Sub ShowValue(cbo As ComboBox) If cbo.ListIndex = -1 Then Exit Sub lblShow.Caption = cbo.Value -- Though daily learning, I LOVE EXCEL! Jennifer |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel 2007 - error saving file & error loading dll | Excel Discussion (Misc queries) | |||
Counting instances of found text (Excel error? Or user error?) | Excel Worksheet Functions | |||
Automation Error, Unknown Error. Error value - 440 | Excel Programming | |||
Syntax Error Runtime Error '424' Object Required | Excel Programming |