Tocogroup
asked on
How do I construct a date in Excel VBA from a shortened month name ?
Hi Experts,
I have an Excel sheet in which dates are split out across 3 columns. For example, I have 01 in column A, "Sep" in column B and 2013 in column C.
I want to create a formatted date (dd/mm/yyyy) in column D. How do I do this in VBA (I can do it manually entering a formula) ?
Thanks
Toco
I have an Excel sheet in which dates are split out across 3 columns. For example, I have 01 in column A, "Sep" in column B and 2013 in column C.
I want to create a formatted date (dd/mm/yyyy) in column D. How do I do this in VBA (I can do it manually entering a formula) ?
Thanks
Toco
which formula are you using?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks. That works fine.
To answer the previous expert's question I used =DATEVALUE(1&"/"&MONTH(C2& 1)&"/"&B2) as a formula within the sheet. No doubt this can be adapted to a VBA solution.
To answer the previous expert's question I used =DATEVALUE(1&"/"&MONTH(C2&
Thanks for your points
Have a nice day
Duncan
Have a nice day
Duncan