+ Reply to Thread
Results 1 to 7 of 7

How to Make check box unchangeable after it's ticked? Date/Time also needs to be stamped.

  1. #1
    Registered User
    Join Date
    01-08-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    4

    How to Make check box unchangeable after it's ticked? Date/Time also needs to be stamped.

    Hi. I hope you could help me with my Excel problem.

    I have a check box that I took from Developer-Insert-Form Control. What i want done is that once the checkbox is ticked, it should not be subsequently changed. The date and time of doing this also needs to be stamped.

    I'm not VBA literate and i'm only a beginner in Excel. Many thanks for any help.



    Timesheet.png

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    01-08-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    4

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    Hi mehmetcik. Thank you for the quick response and i appreciate you teaching me how to attach an excel file.

    I've attached a sample workbook. It's a very basic timesheet that records the time an employee arrives at the office. The employee's time is recorded when the checkbox is ticked.

    My problem is that when the checkbox is unticked, the time recorded (or the timestamp) goes away. So what i want done is that once the checkbox is ticked, it should not be subsequently changed so that the date and time of employee arrival is captured. Or, better yet, if there is a way to capture all of the timestamps each time the checkbox is ticked, then that would be the most ideal.

    Thanks again for your help.
    Attached Files Attached Files
    Last edited by IAAMOATGTIL; 01-09-2017 at 02:49 AM.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    Ok My Friend

    Firstly, Please ammend your profile to show your country. I like to know that at least about the person I am helping.

    Ok

    Select your developer tab and then click on visual basic a new window will open.

    Select View and then project explorer, you will see a list of the open excel worbooks and thier associated sheets and macro modules.

    Left click on your workbook to select it and then click on insert and then module.

    Paste this code into the window that opens and close visual basic.

    Please Login or Register  to view this content.

    In the workbook

    Delete column D, you do not need it.

    Uncheck all your checkboxes

    Then select the developer tab and click on design mode.

    Right click on each of your checkboxes and click on assign macro, then select "Change"

    When you are done select the developer tab and click on design mode.


    Thats it you are ready to go.

    Have a play.

  5. #5
    Registered User
    Join Date
    01-08-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    4

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    Great to have you again mehmetcik. I apologize if i am unable to respond right away. Been very busy the past few days. I've amended my profile as per your request.

    I am excited to go ahead and try your instructions. I will do it as soon as i get my day off. I will update you soon.

    Thanks again for your continued help. Please know that I really appreciate all of your help.

  6. #6
    Registered User
    Join Date
    01-08-2017
    Location
    Manila, Philippines
    MS-Off Ver
    2010
    Posts
    4

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    Hi mehmetcik. I've tried your instructions. True enough, the checkbox has become unclickable (cannot be subsequently changed) after it's ticked. I'm glad to see i'm making headway. However, it doesn't seem to be giving me the correct time. It just keeps showing 12:00AM. I'm not sure if i missing something.

    Thanks again. I really appreciate your help.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to Make check box unchangeable after it's ticked? Date/Time also needs to be stam

    My Apologies

    Try this Code:-

    Please Login or Register  to view this content.

    I have renamed your checkboxes as Check box 1 to 7,

    This allows me to use the name to find the right row.
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 08-23-2014, 01:41 PM
  2. Replies: 12
    Last Post: 05-14-2014, 05:49 AM
  3. Matching Date and Time Stamped Data between worksheets
    By simoneug in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2013, 02:29 PM
  4. [SOLVED] Modifying Date/Time stamped value to calculate Days Since
    By mando415 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2013, 05:10 PM
  5. Replies: 3
    Last Post: 11-24-2012, 03:19 PM
  6. Stamp Date and Time with User Name When Check box ticked
    By raxs in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 01:22 PM
  7. Issue Check Box validation, once check box must be ticked in range
    By franksonata in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2012, 07:42 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