entering time values

A

Atishoo

Im using a userform to enter a time into a cell, I am currently using a
combobox with a list fill range that contains times, when i select a time it
appears in the combobox as a decimal, is there a way of changing this or
alternatively is there just a better way of entering time values other than a
combobox?
 
C

CurlyDave

Im using a userform to enter a time into a cell, I am currently using a
combobox with a list fill range that contains times, when i select a timeit
appears in the combobox as a decimal, is there a way of changing this or
alternatively is there just a better way of entering time values other than a
combobox?

Try

Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1.Value, "h:mm:ss AM/PM")

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top