Another ActiveX ComboBox problem

Have a ComboBox that gets built by VBA.
I have attached the workbook (trimmed down to necessary items)
I cannot for the life of me get the ComboBox to show the correct date format (dd-mmm-yyyy) in the dropdown list, even though it shows the correct date when selected. Except for dates such as 10/7/2015 which reads as 10-Jul-2015 instead of 07-Oct-2015
Been at this for two days now, and need therapy.
Please help by running the macro attached to the button "DSV Procedure" on the PasteSheet. I have placed Stops in the code at each stage for analysis.
Any help would save me a trip to the shrink
Test4.xlsm
LVL 1
Stephen ByromWarehouse/ShippingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rgonzo1971Commented:
Hi,

pls try

Private Sub ComboBox1_Change()
aTextDate = Format(ComboBox1.Text, "mm/dd/yyyy")
If Application.EnableEvents = False Then
    Exit Sub
End If
Application.EnableEvents = False
ComboBox1.Value = Format(DateSerial(Year(aTextDate), Month(aTextDate), Day(aTextDate)), "dd/mmm/yyyy")
Application.EnableEvents = True
ActiveWorkbook.Sheets("LookUpLists").Range("DSVdate").Value = Me.ComboBox1.Value
Range("DSVfigures").Font.Color = vbBlack
End Sub

Open in new window

Regards
0
Stephen ByromWarehouse/ShippingAuthor Commented:
Thanks for the reply RG, but not solved the problem
0
Rgonzo1971Commented:
then try

Private Sub ComboBox1_Change()
ActiveWorkbook.Sheets("LookUpLists").Range("DSVdate").Value = DateValue(ComboBox1.Value)
Range("DSVfigures").Font.Color = vbBlack
End Sub

' and change
'fill combobox1
Dim cmb As ComboBox
Dim rng As Range
lastdate = WS4.Cells(Rows.Count, 18).End(xlUp).Row

Set cmb = Worksheets("Movements").ComboBox1
cmb.Clear
    For Each rng In Worksheets("Movements").Range("R1:R" & lastdate)
        cmb.AddItem Format(rng, "dd-MMM-yyyy")
    Next
cmb.ListIndex = 0

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Stephen ByromWarehouse/ShippingAuthor Commented:
Perfect! Brilliant!
Thanks so much for your time
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.