Create a Button That Enters the Current Time
- Save the workbook as an XLSM (Macro enabled) document first.
- Ensure the Developer tab in the ribbon bar is enabled (enable if it's not via File/Options/Customize Ribbon/Check the box for Developer) and open Visual Basic.
- Create a button via the Developer Ribbon/Insert/Form Controls/Button.
- Create somewhere on the sheet you'd like the button to be visible and customize size/shape/text.
- Once in Visual Basic, paste the below script.
Sub Nowtime() ActiveCell.Value = Now() End Sub - Assign the VBScript to the button you created previously.
No comments to display
No comments to display