LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default DropButtonclick event and list showing

Hi All,

I have a script that populates a cbo on activation, the user selects a
few options and slowly builds a list to create a txt file.

The issue I have is if the final list box is populated with anything
then you cannot change the cbo, so what I have done is added a
dropButtonClick event into the script as below:

Private Sub cboApp_DropButtonClick()

If cboApp.Value < " " And lstSampList.ListCount < 0 Then
vbReset = MsgBox("A list has already been started for " &
cboApp.Value & vbCr & "Due to the restrictions on the XRF only one
list can be created at one time for each application." & vbCr & "Press
OK to restart or cancel to continue", vbOKCancel)
If vbReset = vbOK Then
UserForm_Activate
Else
lstBatch_Click
End If
End If

End Sub

the issue I have is that on the else the list box drop down is still
activated and the list appears, this triggers this event to happen
again and you have to push cancel again to truely cancel.

My question is in my Else what can i put in to prevent the list from
showing, thus creating a mini loop.

Regards

Stopher

 
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
Drop down list showing different value dspitler Excel Discussion (Misc queries) 3 March 25th 08 01:32 PM
drop down list is not showing Tarin C Excel Discussion (Misc queries) 0 May 22nd 07 03:30 AM
UserForm Combobox DropButtonClick Event Bug? [email protected] Excel Programming 4 November 27th 06 09:34 PM
No argument list showing in UDF [email protected] Excel Programming 2 January 25th 06 05:13 PM
Creating and showing a list comotoman Excel Discussion (Misc queries) 5 September 16th 05 05:02 PM


All times are GMT +1. The time now is 12:23 PM.

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"