Hi,
I have one cell that contain a date and one another that contain a time.
I'm simply trying to create a third one of the following format dd/mm/yy hh:mm. I have tried many thing in VB but none of them work.
Any idea?
thanks
acheo
Hi,
I have one cell that contain a date and one another that contain a time.
I'm simply trying to create a third one of the following format dd/mm/yy hh:mm. I have tried many thing in VB but none of them work.
Any idea?
thanks
acheo
do you need to do in VBA?
date and time are simply numbers. I'm assuming your two cells are simply numbers and formatted as date and time only
if A1 is a whole number and A2 is a fraction only then
= A1 + A2 and format as dd/mm/yy hh:mm
Happy with my advice? Click on the * reputation button below
Oh and if the above is correct in regards to how your cells are formated then all you need for a macro would be something like this
Range("a3").Value = Range("a1").Value + Range("a2").Value
Yes VBA is required as I will export the data into a database. I just tried that code in VBA and it works. I knew it had to be simple :-)
thanks a lot!
acheo
Great. Glad it worked. You should show the thread as being solved if this has addressed your issue
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks