Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default ComboBox problem

I'm looping thru the items of combobox list, it works fine but at the end
shows an "invalid use of Null" error as if an additional item that can't be
recognized existed.


For Each In CbxAddress.List
MsgBox ccc
Next ccc


Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ComboBox problem

dim iCtr as long
for ictr = 0 to cbxaddress.listcount - 1
msgbox cbxaddress.list(ictr)
next ictr


LuisE wrote:

I'm looping thru the items of combobox list, it works fine but at the end
shows an "invalid use of Null" error as if an additional item that can't be
recognized existed.

For Each In CbxAddress.List
MsgBox ccc
Next ccc

Thanks in advance


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default ComboBox problem

Dave,
Thanks for the reply.

What I have listed in the combobox is a range of letter representing, so it
won't fork with integers. The way I wrote the code it works but I can't avoid
the last loop -1

"Dave Peterson" wrote:

dim iCtr as long
for ictr = 0 to cbxaddress.listcount - 1
msgbox cbxaddress.list(ictr)
next ictr


LuisE wrote:

I'm looping thru the items of combobox list, it works fine but at the end
shows an "invalid use of Null" error as if an additional item that can't be
recognized existed.

For Each In CbxAddress.List
MsgBox ccc
Next ccc

Thanks in advance


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default ComboBox problem

Try it. You may be surprised.

LuisE wrote:

Dave,
Thanks for the reply.

What I have listed in the combobox is a range of letter representing, so it
won't fork with integers. The way I wrote the code it works but I can't avoid
the last loop -1

"Dave Peterson" wrote:

dim iCtr as long
for ictr = 0 to cbxaddress.listcount - 1
msgbox cbxaddress.list(ictr)
next ictr


LuisE wrote:

I'm looping thru the items of combobox list, it works fine but at the end
shows an "invalid use of Null" error as if an additional item that can't be
recognized existed.

For Each In CbxAddress.List
MsgBox ccc
Next ccc

Thanks in advance


--

Dave Peterson


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 133
Default ComboBox problem

THANKS A LOT

"Dave Peterson" wrote:

Try it. You may be surprised.

LuisE wrote:

Dave,
Thanks for the reply.

What I have listed in the combobox is a range of letter representing, so it
won't fork with integers. The way I wrote the code it works but I can't avoid
the last loop -1

"Dave Peterson" wrote:

dim iCtr as long
for ictr = 0 to cbxaddress.listcount - 1
msgbox cbxaddress.list(ictr)
next ictr


LuisE wrote:

I'm looping thru the items of combobox list, it works fine but at the end
shows an "invalid use of Null" error as if an additional item that can't be
recognized existed.

For Each In CbxAddress.List
MsgBox ccc
Next ccc

Thanks in advance

--

Dave Peterson


--

Dave Peterson

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
Problem with ComboBox TimN Excel Programming 2 August 2nd 06 07:45 PM
ComboBox Problem Mark Dullingham Excel Programming 0 May 12th 06 04:36 AM
combobox problem Ashman Excel Programming 1 August 21st 05 11:25 PM
ComboBox Problem R Avery Excel Programming 4 August 3rd 04 06:24 PM
ComboBox Problem Tressa Excel Programming 2 August 27th 03 08:58 PM


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