wentworth16238
New Member
- Joined
- Dec 30, 2016
- Messages
- 6
Hi,
I've tried a number of ways to do this so far, without much success.
I have a combo box on a userform. I populate it by put the range in the RowSource of the properties for that combo box. In this case I use EFD, effective dates
and they ranges from 02/01/17- 01-01-19
When I choose the date in the combo box I get a 5 digit number.
so, I've tried putting in VBA language suchas
(Code)
Private Sub CbEFD_Change()
CbEFD.Value = Format(CbEFD.Value, "dd-mm-yyyy")
End Sub
This doesn't do anything apparently.
Maybe I'm putting it in the WRONG place, Any ideas?
I've also tried putting some language in the initialize section
I followed something I found on another forum
(Code)
Private Sub Userform_Initalize()
Dim rCell as Range
Dim rInput As Range
Set rInput = Worksheets.Range("EFD") ' I didn't know if I should put in E2:E31 or not
For Each rCell in rInput
CbEFD.Additem. Str(rCell.Value)
Next
Set rCell = Nothing
Set rInput = Nothing
End sub
'This didn't do anything either. Ideas? I'm at a standstill on something this simple.
I've tried a number of ways to do this so far, without much success.
I have a combo box on a userform. I populate it by put the range in the RowSource of the properties for that combo box. In this case I use EFD, effective dates
and they ranges from 02/01/17- 01-01-19
When I choose the date in the combo box I get a 5 digit number.
so, I've tried putting in VBA language suchas
(Code)
Private Sub CbEFD_Change()
CbEFD.Value = Format(CbEFD.Value, "dd-mm-yyyy")
End Sub
This doesn't do anything apparently.
Maybe I'm putting it in the WRONG place, Any ideas?
I've also tried putting some language in the initialize section
I followed something I found on another forum
(Code)
Private Sub Userform_Initalize()
Dim rCell as Range
Dim rInput As Range
Set rInput = Worksheets.Range("EFD") ' I didn't know if I should put in E2:E31 or not
For Each rCell in rInput
CbEFD.Additem. Str(rCell.Value)
Next
Set rCell = Nothing
Set rInput = Nothing
End sub
'This didn't do anything either. Ideas? I'm at a standstill on something this simple.