Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Toggle ListBox display?

Is there a way to toggle the display of a ListBox?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Toggle ListBox display?

"Phil H." wrote in message
...
Is there a way to toggle the display of a ListBox?


Sure. What kind of toggle did you have in mind ?

Best wishes Harald

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Toggle ListBox display?

Harold, Thanks for the encouraging response.

I've created ListBox1, put it in the header row of a spreadsheet, and want
to toggle the display of the ListBox on and off. I have numerous columns and
don't have room for a permanent display, so toggling is my answer. Toggled
on, the user can scroll down the list to find information; toggled off, the
ListBox disappears and only the toggle button remains visable.

Phil

"Harald Staff" wrote:

"Phil H." wrote in message
...
Is there a way to toggle the display of a ListBox?


Sure. What kind of toggle did you have in mind ?

Best wishes Harald


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Toggle ListBox display?

Hi Phil

Toggle button code (rightclick; "view code", or similar):

Private Sub ToggleButton1_Click()
Me.ListBox1.Visible = Me.ToggleButton1.Value
'or
'Me.ListBox1.Visible = Not (Me.ToggleButton1.Value)
End Sub

Best wishes Harald


"Phil H." wrote in message
...
Harold, Thanks for the encouraging response.

I've created ListBox1, put it in the header row of a spreadsheet, and want
to toggle the display of the ListBox on and off. I have numerous columns
and
don't have room for a permanent display, so toggling is my answer.
Toggled
on, the user can scroll down the list to find information; toggled off,
the
ListBox disappears and only the toggle button remains visable.

Phil

"Harald Staff" wrote:

"Phil H." wrote in message
...
Is there a way to toggle the display of a ListBox?


Sure. What kind of toggle did you have in mind ?

Best wishes Harald



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Toggle ListBox display?

Thanks, Harald - works exactly as needed.

"Harald Staff" wrote:

Hi Phil

Toggle button code (rightclick; "view code", or similar):

Private Sub ToggleButton1_Click()
Me.ListBox1.Visible = Me.ToggleButton1.Value
'or
'Me.ListBox1.Visible = Not (Me.ToggleButton1.Value)
End Sub

Best wishes Harald


"Phil H." wrote in message
...
Harold, Thanks for the encouraging response.

I've created ListBox1, put it in the header row of a spreadsheet, and want
to toggle the display of the ListBox on and off. I have numerous columns
and
don't have room for a permanent display, so toggling is my answer.
Toggled
on, the user can scroll down the list to find information; toggled off,
the
ListBox disappears and only the toggle button remains visable.

Phil

"Harald Staff" wrote:

"Phil H." wrote in message
...
Is there a way to toggle the display of a ListBox?

Sure. What kind of toggle did you have in mind ?

Best wishes Harald




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
is it possible to toggle display of project window with control-R Brian Murphy Excel Programming 3 January 31st 07 05:50 AM
is it possible to toggle display of project window with control-R [email protected] Excel Programming 2 January 28th 07 07:44 PM
Can't toggle (or display) formula bar DES1944 Excel Discussion (Misc queries) 5 June 29th 06 12:14 AM
Can't toggle function results display. W. J. Settegast Excel Discussion (Misc queries) 0 February 16th 06 10:33 PM
Is there a way to toggle cells between display of referenced data. williejoeshaver Excel Discussion (Misc queries) 3 March 11th 05 11:22 PM


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