Userform Date & Time picker

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,287
Office Version
  1. 2013
Platform
  1. Windows
Hello is there any way to show time value as in current time when the userform pop up?
 
Last edited:

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,
Yes it is..
In your userform you can have a textbox and when you start your form it shows the current date with time

me.txtTime.value=now()

HTH
 
Upvote 0
In your Userform you need a script like this:
Code:
Private Sub UserForm_Initialize()
'Modified  10/7/2018  7:23:54 AM  EDT
TextBox2.Value = Time
End Sub

For Time:
Or Now() if you want Date and Time
 
Last edited:
Upvote 0
Glad we were able to help you.

There are three of these type functions:

Time: Gives current Time
Now(): Gives Date and Time
Date: Gives Todays Date
 
Upvote 0

Forum statistics

Threads
1,225,757
Messages
6,186,848
Members
453,379
Latest member
gabriellegonzalez

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top