+ Reply to Thread
Results 1 to 3 of 3

Toggle button

  1. #1
    Forum Contributor keithl816's Avatar
    Join Date
    03-18-2005
    Location
    Georgia
    MS-Off Ver
    2000
    Posts
    188

    Toggle button

    Hello,

    I have toggle buttons on a spreadsheet that opens hidden spreadsheets when not in use. These sheets are just for correction purposes, so to keep from having so many spreadsheets on the bottom bar, I hide them. Is it possible to change the title in the button when the button is depressed? I want the button to show DISPLAY when out and HIDE when depressed.

    Any help would be appreciated.

    Larry

  2. #2

    Re: Toggle button

    Insert this code with the appropriate name changes into the click event
    of your button.
    Private Sub ToggleButton1_Click()

    MsgBox ToggleButton1.Value
    If ToggleButton1.Value = True Then
    ToggleButton1.Caption = "Hide"
    Else
    ToggleButton1.Caption = "Display"
    End If

    End Sub


  3. #3
    Forum Contributor keithl816's Avatar
    Join Date
    03-18-2005
    Location
    Georgia
    MS-Off Ver
    2000
    Posts
    188
    Hi twox4s,

    Thanks for the reply. That worked great!!!!

    Thanks again.

    Larry

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1