Welcome to my website!

All my tutorials are here to teach you how to use a few lines of codes to automate repetitive tasks which will save us tremendous amount of time.

Inserting Today's Date in One Click!

Clinical Research Data 101

Tools/Languages: Excel VBA Macro

This blog post shows the VBA macro you need to insert today's date by clicking a bottom.


This tutorial is to enlighten those of you who are tired of typing dates in Excel.

First of all, here's the link to learn how to turn on the "Developer Mode" in your Excel.

In clinical research, we need to monitor the enrollment progress every day and enter the new participants to our tracking database, aka Excel spreadsheet. However, Excel doesn't come with the little calendar attached to the cell if you change the cell format to "Date". Therefore, you end up typing or copying/pasting the dates over and over again. That's annoying!

What happened?

With these few simple lines of codes, you will be able to enter the dates without typing anything. You can place your mouse in any cell and click the bottom. BOOM! Today's date is entered like magic.

What should I do now?

Please leave me a message if it doesn't work for you.