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: 37
Default Listbox - works 1/2 time

Hi,

I have some option buttons (for now, Opt1 and Opt2), a listbox (ListBox1)
and a command button (Cmd1) on a worksheet. Here is the very basic code I
have reduced the option buttons to in trying to debug my issue...

Private Sub Opt1_Click()
ListBox1.Visible = False
Cmd1.Visible - False
End Sub

Private Sub Opt2_Click()
ListBox1.Visible = True
Cmd1.Visible = True
End Sub


When I click Opt1, the list box is not visible. When I then click Opt2, the
list box is visible and shows the info I expect. The problem is that I am
unable to select any rows in the list, or scroll down the list. The command
button works as coded (including error hanndling for no selection in the
list).

Then, I click Opt1 again, the list is hidden, followed by Opt2, the list is
now visible again. This time however, I can now select rows in the list, etc.

This pattern repeats, so that if click Opt1, then Opt2 again, I will not be
able to use the listbox, and then I can. I have checked that the list box
is always set to enabled, that the worksheet itself is not protected, and
looked for other settings that I thought might be causing this. I am using
Excel 2000.

Anyone know why this would happen?

Thanks!




 
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
Fill a multicolumn listbox with data from a range in another works Dale Fye Excel Programming 1 October 12th 07 06:58 PM
It works .... but only 1 time JeroenM Excel Programming 0 July 12th 07 08:40 AM
Works every second time hih Excel Programming 2 January 20th 06 06:06 PM
CopyPicture only works second time AllanS Excel Programming 2 September 20th 05 01:32 PM
listbox works in form; not imbedded??? jasonsweeney[_66_] Excel Programming 3 April 15th 04 10:24 PM


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