#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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
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
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM
Syntax Error Runtime Error '424' Object Required sjenks183 Excel Programming 1 January 23rd 04 09:25 AM


All times are GMT +1. The time now is 12:30 AM.

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"