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

Hi,
I have a list of three combo boxes. The entry in the second depends on the entry in first, same for the second.
Before the entries are filled, I have used Combobox2.Clear and Combox3.Clear.

The problem arises when I try to select the option from the drop down list again. These two statements are supposed to be executed. Although Combox2.Clear runs, the progran gives an error on ComboBox3.Clear.
Any idea why? and what to do to avoid it?
TIH
Shilps
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help needed for ComboBox

Combobox2.Clear will remove all of the items. Not a good idea.

When you say 2 is dependant on 1, do you men that if you select item 10 in
1, then item 10 in 2 should be shown, if so, then use something like

Combobox2.ListIndex = Combobox1.ListIndex

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Shilps" wrote in message
...
Hi,
I have a list of three combo boxes. The entry in the second depends on the

entry in first, same for the second.
Before the entries are filled, I have used Combobox2.Clear and

Combox3.Clear.

The problem arises when I try to select the option from the drop down list

again. These two statements are supposed to be executed. Although
Combox2.Clear runs, the progran gives an error on ComboBox3.Clear.
Any idea why? and what to do to avoid it?
TIH
Shilps



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Help needed for ComboBox

No Bob. What I mean is that for different options in comboBox1, there are different lists in ComboBox2.What list will fill ComboBox2 depends on what is the option in ComboBox1.
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help needed for ComboBox

I have a sample for this. Mail me if you want a copy.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Shilps" wrote in message
...
No Bob. What I mean is that for different options in comboBox1, there are

different lists in ComboBox2.What list will fill ComboBox2 depends on what
is the option in ComboBox1.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Help needed for ComboBox

Mails are bouncing from your account. Where do I send the mail?


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Help needed for ComboBox

bob . phillips @ tiscali . co . uk

remove the spaces. The mail address you get here has a spam trap.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Shilps" wrote in message
...
Mails are bouncing from your account. Where do I send the mail?



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help needed for ComboBox

What does the error message say? If combobox3 is the name and it is visible
to the routine, it shouldn't cause a problem.

in your email
Combox3.Clear
is misspelled. Is it possible you have a spelling error in your code as
well?

--
Regards,
Tom Ogilvy

"Shilps" wrote in message
...
Hi,
I have a list of three combo boxes. The entry in the second depends on the

entry in first, same for the second.
Before the entries are filled, I have used Combobox2.Clear and

Combox3.Clear.

The problem arises when I try to select the option from the drop down list

again. These two statements are supposed to be executed. Although
Combox2.Clear runs, the progran gives an error on ComboBox3.Clear.
Any idea why? and what to do to avoid it?
TIH
Shilps



  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Help needed for ComboBox

Sorry for the typo in the mail. The spelling is correct in the code. I am getting a runtime error 2147467259(80004005). Unspecified error.
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
Deleting Rows With Non-Needed Data between Needed Data Daren Excel Worksheet Functions 2 September 30th 08 06:47 PM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
Combobox David Fixemer Excel Programming 1 February 24th 04 05:03 AM
combobox scrabtree[_2_] Excel Programming 4 October 16th 03 04:10 PM
combobox value cg Excel Programming 5 September 28th 03 07:26 PM


All times are GMT +1. The time now is 04:19 AM.

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"