Thanks for this Trucker.
Code:
Private Sub UserForm_Activate()
If IsDate(ActiveCell.Value) Then
MonthView1.Value = DateValue(Range("B2"))
Else
[B2].FormulaR1C1 = Format(Now, "dd-mm-yyyy hh:mm:ss")
End If
End Sub
This keeps the current date in the active cell on the date picker just fine. I would also like the hours and mins textboxes to show the current time. i.e if the date/time in cell B2 is "29/08/2009 20:35" then textbox1 would show "20" and textbox2 would show "35".
I altered the code to following...
This code works for textbox1 but of course textbox2 displays the month of the value in cell B2. Can i format textbox2 to just the mins "35"?
Attached is my latest version...
Thanks guys.
Bookmarks