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.
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.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!