+ Reply to Thread
Results 1 to 4 of 4

Lock a Form Control Checkbox once it is checked

  1. #1
    Registered User
    Join Date
    08-31-2018
    Location
    Portland, Oregon
    MS-Off Ver
    2007
    Posts
    10

    Lock a Form Control Checkbox once it is checked

    Hi all,

    I'm trying to figure out a way to lock a Form Control Checkbox once it is checked. Basically do not want the user to be able to uncheck it once it is checked.

    Any help is appreciated.

    And thank you in advance!

    Anthony
    Last edited by 6StringJazzer; 09-20-2018 at 02:16 PM. Reason: Moderator clarified title

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Lock a Form Control Checkbox once it is checked

    Maybe this...

    Create a Forms CheckBox on your worksheet
    Right-click and choose 'Assign Macro'
    Click 'New'

    It should open the VBA editor to a new module, with a new sub called something like "Sub CheckBox1_Click()". Add a little code and close the VB editor. (Adjust your sheet/checkbox names as needed, of course.)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-31-2018
    Location
    Portland, Oregon
    MS-Off Ver
    2007
    Posts
    10

    Re: Lock a Form Control Checkbox once it is checked

    Thanks. That worked.

  4. #4
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Lock a Form Control Checkbox once it is checked

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. hiding rows which contain checkboxes but checkboxes don't hide as they should
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 08-08-2019, 10:26 AM
  2. [SOLVED] Checkboxes - How to check/uncheck other checkboxes based on another checkbox
    By brooklyn_87 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-27-2017, 01:20 PM
  3. [SOLVED] Toggle between userform checkboxes for multiple pairs of checkboxes
    By L plates in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-25-2016, 06:31 AM
  4. master checkboxes to select a group of other checkboxes?
    By fael097 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-26-2016, 03:46 PM
  5. Using Checkboxes to Select Other Checkboxes
    By SoothSailor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2015, 12:48 PM
  6. Replies: 4
    Last Post: 04-28-2013, 12:47 AM
  7. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 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