+ Reply to Thread
Results 1 to 8 of 8

Clearing Tick and Radio Buttons?

  1. #1
    Registered User
    Join Date
    01-21-2013
    Location
    Sunshine Coast, Queensland
    MS-Off Ver
    Excel 2003
    Posts
    13

    Exclamation Clearing Tick and Radio Buttons?

    Morning, something very easy for all your experts out there I'm sure , but how do clear tick boxes and radio buttons back to unchecked? I am using a Macro to clear the form but can't reset the those two buttons back to unchecked? I appreciate your help.
    cheers

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Clearing Tick and Radio Buttons?

    Please Login or Register  to view this content.
    Last edited by vlady; 01-23-2013 at 07:34 PM.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    01-21-2013
    Location
    Sunshine Coast, Queensland
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Clearing Tick and Radio Buttons?

    Thanks Sean, I added that code to my Macro (which is in a template), but when I ran it, it doesn't clear the boxes? What am I doing wrong?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Clearing Tick and Radio Buttons?

    Hello KarenV
    ,

    There are two types of controls: Forms and ActiveX. The code Sean posted is for an ActiveX control. Just because it did not work does not mean your controls are Forms controls. Clearing ActiveX controls on worksheet is a bit more involved. To get a correct and fast response you should post a copy of your workbook.

    To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.

    File Manger Pic
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Registered User
    Join Date
    01-21-2013
    Location
    Sunshine Coast, Queensland
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Clearing Tick and Radio Buttons?

    Thanks for your help, I have attached a copy of the file.
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Clearing Tick and Radio Buttons?

    Hi, you are using form controls.
    If you want to control them/reset them using vba you will need to use activeX controls.

  7. #7
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Clearing Tick and Radio Buttons?

    Hello KarenV,

    The macro below has been added to the attached workbook. This will clear the form completely except for cells with formulas and reset the controls.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-21-2013
    Location
    Sunshine Coast, Queensland
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Clearing Tick and Radio Buttons?

    Hi Leith

    That is perfect thank you - I feel so incompetent sometimes. In the original macro, I had it copying the range 'output' and placing it in the range 'database' so that it recorded and saved everything being entered - but now that doesn't work, yet it is still there in the macro, and when it cleared the form, it entered the current date automatically and that doesn't work either, yet is still there too. I know I am no expert, but it is so frustrating - hope you can help me.
    thanks

+ 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