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.
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
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.