Splitting cell into 3 userform boxes (Deconcatenate)

meerkatmatt

New Member
Joined
Sep 23, 2014
Messages
2
Hi all

Hope you can help.

I've been having issues with date formatting when I transfer dates from a userform to the excel workbook (everything moves into US format) even though I've done various formatting in the VBA using functions etc.

What I've now done is to have the date split on the userform into Day Month Year boxes. When I submit this it then concatenates it into 1 cell on the worksheet. What I need to do is when I need to update the userform with other information is to have the date pulled back into the userform in the 3 boxes from the 1 cell. I have got the date in the form of e.g. 23-Sep-2014

Hope this makes sense.

Thank you in advance of your help.

Matt
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
7,335
If the date in the cell is an Excel date then you can use these functions to get the 3 parts:
Code:
    Debug.Print Day(Range("A1").Value)
    Debug.Print Month(Range("A1").Value)
    Debug.Print Year(Range("A1").Value)
If you need the month name, call the MonthName function.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,115
Messages
5,835,471
Members
430,358
Latest member
zzc1128

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top