Convert Integer to Date

seasidematt

Board Regular
Joined
Jun 18, 2009
Messages
69
Hi,

Is it possible to convert a integer number into a date format?

I have a problem wheer my dates being input into a vba form that are showing as the integer date.

Is there some code that would validate and convert this number to a date format i.e. DD/MM/YYYY

Any help would be most appreciated

Matt
 
So it's not a userform at all, but a worksheet with some controls stuck on it? (yuck :))
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Are they from the Forms toolbar or the Control Toolbox?
 
Upvote 0
Oh dear. ;)
Any chance of using an actual userform instead?
 
Upvote 0
Unfortunately I'm to far gone to change now... I'm presenting this on Thursday for roll out across my organisation.. I think user forms are the way forward but that would have to be for version 2.0<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
 
Upvote 0
The simplest fix I think would be to format the date cells as Text on the data sheet - that should flow through to the control.
 
Upvote 0
Roy,

Thanks that was my contingency if i couldnt get it to work. Anyway thanks for your help..

I promise my next one will be a user form! :)

Matt
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,838
Members
449,471
Latest member
lachbee

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
Back
Top