Results 1 to 12 of 12

remove checkbox ticks from last use upon opening user form

Threaded View

TheNewGuy remove checkbox ticks from... 06-02-2009, 12:34 PM
davegugg Re: remove checkbox ticks... 06-02-2009, 01:13 PM
TheNewGuy Re: remove checkbox ticks... 06-02-2009, 01:24 PM
royUK Re: remove checkbox ticks... 06-02-2009, 01:36 PM
TheNewGuy Re: remove checkbox ticks... 06-02-2009, 02:54 PM
davegugg Re: remove checkbox ticks... 06-02-2009, 05:02 PM
TheNewGuy Re: remove checkbox ticks... 06-02-2009, 07:32 PM
TheNewGuy Re: remove checkbox ticks... 06-03-2009, 07:47 AM
royUK Re: remove checkbox ticks... 06-03-2009, 08:16 AM
TheNewGuy Re: remove checkbox ticks... 06-03-2009, 08:36 AM
tabbott0829 Re: remove checkbox ticks... 03-20-2013, 09:05 AM
HaHoBe Re: remove checkbox ticks... 03-20-2013, 11:38 AM
  1. #1
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    remove checkbox ticks from last use upon opening user form

    first of all, I apologize for asking a question that I KNOW has been answered before but, I am having trouble applying the answers I have found to my situation. I am simply trying to write a macro or code that will set all the check box values to "False" each time I initiate the User form. So that the user form does not "carry over" check box values from the last time the User form was used.
    Thanks in advance for any help.any help at all..........

    --edit---This did the trick!
    However I had to make sure I cleared the value from the cell that each control is associated with.(the controlsource in the user form properties.)

    Thanks for all your help!

    Sub ResetAllCheckBoxesInUserForm()
    Dim ctrl As Control
        For Each ctrl In UserForm1.Controls
            If TypeName(ctrl) = "CheckBox" Then
                ctrl.Value = False
            End If
        Next ctrl
    End Sub
    Last edited by TheNewGuy; 06-12-2009 at 01:26 PM.

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