Hi
I have a form that allows the use to click on a button to input the date and time. This then needs to be added to a worksheet and need to display the date and the time within the same cell. Using the code
this works with the date but displays it as 00:00 for the time. The time I need to use is the time that the user inputs not the time on the PC. How can I add the time function to this line of code?
Regards
David
I have a form that allows the use to click on a button to input the date and time. This then needs to be added to a worksheet and need to display the date and the time within the same cell. Using the code
Code:
ActiveSheet.Range("A1").Value = DateValue(txtDate.Text)
this works with the date but displays it as 00:00 for the time. The time I need to use is the time that the user inputs not the time on the PC. How can I add the time function to this line of code?
Regards
David