Question : Excel 2010 - Adding Date & Time a button was clicked?

I have a maintenance worksheet that runs a number of macros assigned to buttons. Is it possible to format a cell on the sheet to add the Date & Time that a named button was last clicked on/at?

Also, is it possible in Excel to have an official column that is a Yes/No field. Obviously I can put the words in but wondered whether I can make it an official yes/no field from a programming point of view.

Thanks

Answer : Excel 2010 - Adding Date & Time a button was clicked?

Yes, add this code to the end of each of your button clicks (obviously change the range to suit where your buttons are):

   Range("F4").Value = "Last Clicked: " & Format(Now(), "MM/DD/YYYY HH:MM:SS")


>>is it possible in Excel to have an official column that is a Yes/No field
Yes, you can use data validation to restrict a column to only allow yes or no to be entered.

See attached example, it only allows yes or no in column A.  Also, click the button, and you'll see the last clicked change each time you click it.
 
Example
 
Random Solutions  
 
programming4us programming4us