Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi all!
I've never created a function before but find myself in need of one.
In vba, if you put in
then you get a result such as this: 10:30:22 am
This is too specific for my needs.
I'd like to create a function called Time2 where it returns the same result as above but without the seconds... so
Returns: 10:30 am
Does anyone know how to write this function?
I've never created a function before but find myself in need of one.
In vba, if you put in
Code:
Range("A1").value = Time
then you get a result such as this: 10:30:22 am
This is too specific for my needs.
I'd like to create a function called Time2 where it returns the same result as above but without the seconds... so
Code:
Range("A1").value = Time2
Returns: 10:30 am
Does anyone know how to write this function?