Timestamp in Column AC when box is checked in column A

boivinjoe121

New Member
Joined
Feb 10, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a sheet with multiple rows of data. In column A there are check boxes. What I need is code that puts a timestamp in column AC when the box is checked in column A of the same row. Column AC is also the last Column of the row if that is helpful.

Thanks, new to VBA and trying to figure all this out.

JB
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi and welcome to MrExcel.

In column A there are check boxes.

Are the checkbox controls of Form or ActiveX?
Does the control have a linked to a cell?

Eg:
For Form control:
1581365011287.png


For Activex Control:
1581364814957.png
 

Attachments

  • 1581364931816.png
    1581364931816.png
    17.8 KB · Views: 11
Upvote 0
it does not have a link.
Without a link it is difficult to determine which checkbox you pressed.
Or you should add a macro for each checkbox.
If you decide to make the link with one cell for each checkbox, tell me in which cell you will make the reference.
 
Upvote 0
You can assign this code to all the checkboxes & it will put a date time stamp in col AC for the row where the top left corner of the checkbox is.
VBA Code:
Sub boivinjoe()
   Dim Shp As Shape
   
   Set Shp = ActiveSheet.Shapes(Application.Caller)
   Range("AC" & Shp.TopLeftCell.Row).Value = Date + Time
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top