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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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: 15
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,224,113
Messages
6,176,457
Members
452,728
Latest member
mihael546

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