How to insert current date into textbox?
Normally, we can quickly and easily insert current date and time into cell by using a simple formula, but, have you ever tried to insert current date and time into a textbox? This article, I will talk about some quick tricks for solving this task in Excel.
Recommended Excel Productivity Tools
If you draw a textbox from the Insert tab directly, the following steps may help you to insert the current date and time.
1. After drawing the textbox, select it, and enter this formula: =A1 into the formula bar, and press Enter key, it will link this textbox to a specific cell, for instance, A1, see screenshot:
2. Then enter this formula: =now() into cell A1, and press Enter key to get the current date and time, and the date time will be displayed into the textbox as automatically, see screenshot:
Note: To insert only the current date into the textbox, please enter this formula: =today() into the linked cell A1.
If you insert the ActiveX textbox into your worksheet, you should apply the following steps to deal with this job.
1. After inserting the ActiveX textbox, select it, under the Developer tab, click Properties, and in the popped out Properties dialog box, enter the linked cell reference A1 into the LinkedCell text box under Alphabetic tab, see screenshot:
2. Then close this dialog box, and then enter this formula in cell A1: =TEXT(NOW(),"dd/mm/yyyy hh:mm:ss") and press Enter key to get the current date time, and the date time has been linked into the textbox at once, see screenshot:
Note: To insert only the current date into the textbox, please enter this formula: =Text(today(),"dd/mm/yyyy") into the linked cell A1.