Results 1 to 10 of 10

New To Excel UserForms and tried to guess at format of ToggleButton VBA

Threaded View

  1. #1
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Gibraltar, Gibraltar
    MS-Off Ver
    365
    Posts
    150

    New To Excel UserForms and tried to guess at format of ToggleButton VBA

    What did I do wrong?

    Private Sub ToggleButton1_Click()
    If ToggleButton1.Caption = YES Then
    ToggleButton1.Caption = NO
    ToggleButton1.Value = False
    End If
    If ToggleButton1.Caption = NO Then
    ToggleButton1.Caption = YES
    ToggleButton1.Value = True
    End If
    End Sub
    Last edited by Michael Island; 04-05-2020 at 11:10 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Togglebutton
    By Southernw2002 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2014, 07:10 AM
  2. [SOLVED] I guess there's some error or mistake in calculation ... by Excel ..
    By sufian.naeem in forum Excel General
    Replies: 22
    Last Post: 12-27-2013, 11:30 AM
  3. [SOLVED] Run Macros/Userforms in HTML format
    By pipoliveira in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-06-2012, 11:10 AM
  4. So I guess everyone can become an Excel MVP these days
    By JieJenn in forum The Water Cooler
    Replies: 18
    Last Post: 01-03-2012, 05:24 PM
  5. Excel data type auto guess problem
    By stefen054 in forum Excel General
    Replies: 2
    Last Post: 12-05-2007, 02:00 PM
  6. Time format from Userforms
    By Brento in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-28-2006, 07:08 PM
  7. [SOLVED] Excel Woes - Formula bug (I guess)
    By mikeydread1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-18-2006, 11:50 AM

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