rhb1 Posted June 3, 2007 Posted June 3, 2007 Does anybody know how to validate a Text field, selected from the Control Toolbox within Excel, so that it displays dates in dd/mm/yyy format rather than the serial number ? Thanks RHB
alonebfg Posted June 3, 2007 Posted June 3, 2007 you need to format the cell to date short date i think it is but dont quote me on that its been a while since i used exel in anger
rhb1 Posted June 3, 2007 Author Posted June 3, 2007 If only it was that simple. That wroke within any cell within the Worksheet. I have created a text object,via the Control toolbox, which is linked to a specific cell via the LinkedCell property. Even though the cell is in a date format, it shows the cerial number within the text object. Wondered if anyone knows a way of formatting it within the LinkedCell property. Have tried Format(CellNo,"DD/MM/YY") but the property does not like it. I ams sure I could code it in the macro but though there must be an easier way. RHB
apeo Posted June 4, 2007 Posted June 4, 2007 Did a quick google and looks like you have to code it to be able to validate/format it.
apeo Posted June 4, 2007 Posted June 4, 2007 Oh you could also use Microsoft Masked Edit Control instead of a TextBox Control.
rhb1 Posted June 4, 2007 Author Posted June 4, 2007 Now I am out of my depth. Is that within .NET ? Don't think its part of standard Exel ? RHB1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now