Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You mentioned Date datatypes. I'm having a similar problem with getting VBA to recognise my Dates. I take a string from a form combobox, and put it into a date variable, which works, but recognises the date as if it was in mm/dd/yy format rather than the format it's actually in: dd/mm/y
Private Sub CountDate_DropButtonClick( Dim DteCountDate As Dat DteCountDate = CountDate 'this assumes that countdate is in mm/dd/yy forma CountDate.Clea For i = -5 To 5: CountDate.AddItem Format$(DteCountDate + i, "dd/mm/yy"): Nex CountDate = DteCountDat End Su Private Sub CountDate_Exit(ByVal Cancel As MSForms.ReturnBoolean CountDate.Text = Format$(CountDate.Value, "dd/mm/yy" End Su |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Problem with TAB key and Textbox controls | Excel Programming | |||
Dynamically Adding Textbox To Frame | Excel Worksheet Functions | |||
Problem with TextBox & ControlSource - Please Help | Excel Programming | |||
TextBox SetFocus Problem | Excel Programming | |||
Excel textbox problem | Excel Programming |