Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Hmmm. Private Sub ComboBox6_DropButtonClick(). Should i have my code here ?

Private Sub ComboBox6_DropButtonClick()

I have just realised that EACH time i Click on the DropDownButtonClick
Button,
I get a Duplicate populated LIST if Clicked on more than ONCE.

TO ONLY ever populate the LIST ONCE, where should i be placing the code ?
It is on Userform5.
The code is dependant upon other values chosen on the Userform, so it
therefore cannot be placed in the Userform.Initialize or Activate event.

Any Idea's, or am i stuck with it here ?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Hmmm. Private Sub ComboBox6_DropButtonClick(). Should i have my code here ?

Corey,
You can check if the combo has been populated.
If ComboBox6.ListCount0 then exit sub

NickHK

"Corey" wrote in message
...
Private Sub ComboBox6_DropButtonClick()

I have just realised that EACH time i Click on the DropDownButtonClick
Button,
I get a Duplicate populated LIST if Clicked on more than ONCE.

TO ONLY ever populate the LIST ONCE, where should i be placing the code ?
It is on Userform5.
The code is dependant upon other values chosen on the Userform, so it
therefore cannot be placed in the Userform.Initialize or Activate event.

Any Idea's, or am i stuck with it here ?

Corey....




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Hmmm. Private Sub ComboBox6_DropButtonClick(). Should i have my code here ?

Thanks Nick done a treat.

So .listcount identifies the number of time the list has been populated
then.

Learn something new every day.

Cheers.

Corey....



"NickHK" wrote in message
...
Corey,
You can check if the combo has been populated.
If ComboBox6.ListCount0 then exit sub

NickHK

"Corey" wrote in message
...
Private Sub ComboBox6_DropButtonClick()

I have just realised that EACH time i Click on the DropDownButtonClick
Button,
I get a Duplicate populated LIST if Clicked on more than ONCE.

TO ONLY ever populate the LIST ONCE, where should i be placing the code ?
It is on Userform5.
The code is dependant upon other values chosen on the Userform, so it
therefore cannot be placed in the Userform.Initialize or Activate event.

Any Idea's, or am i stuck with it here ?

Corey....






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Hmmm. Private Sub ComboBox6_DropButtonClick(). Should i have my code here ?

Corey,
No, it tell you number of items in the list.
If it is 0 then you have populated with some item(s) ; .ListCount tells you
how many items.

I guess to delete the populate list code from the DropDownButtonClick event
then, if you do not want it.

NickHK

"Corey" wrote in message
...
Thanks Nick done a treat.

So .listcount identifies the number of time the list has been populated
then.

Learn something new every day.

Cheers.

Corey....



"NickHK" wrote in message
...
Corey,
You can check if the combo has been populated.
If ComboBox6.ListCount0 then exit sub

NickHK

"Corey" wrote in message
...
Private Sub ComboBox6_DropButtonClick()

I have just realised that EACH time i Click on the DropDownButtonClick
Button,
I get a Duplicate populated LIST if Clicked on more than ONCE.

TO ONLY ever populate the LIST ONCE, where should i be placing the code

?
It is on Userform5.
The code is dependant upon other values chosen on the Userform, so it
therefore cannot be placed in the Userform.Initialize or Activate

event.

Any Idea's, or am i stuck with it here ?

Corey....








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
Private Function Code Change Phil H[_2_] Excel Programming 5 April 14th 06 02:04 PM
Private Sub Running Other Private Sub Inadvertently Ross Culver Excel Programming 2 February 10th 05 07:17 PM
Hmmm... Excel OVERRIDES vpagebreak and hpagebreak vb code???? wjoc1[_2_] Excel Programming 1 October 14th 04 12:58 PM
Hmmm... Excel OVERRIDES vpagebreak and hpagebreak vb code???? wjoc1 Excel Programming 1 October 14th 04 03:33 AM
Add code to Private Sub ComboBox1_Change() with a macro from a different workbook help_wanted[_2_] Excel Programming 4 April 2nd 04 06:47 PM


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