Archive of Mr Excel Message Board

Back to Controls in Excel archive index
Back to archive home

Combobox
Posted by Cory on July 01, 2001 9:54 AM
I ahve a combobox on a form that has time values in its dropdown list, ie: 8:00 AM, but when I select a time the cbo's format shows something like: "0.33333333". How do I change the format to display the time instead of its numerical equivalent?

Re: Combobox
Posted by Ivan F Moala on July 01, 2001 7:30 PM
ComboBox1.Text = Format(ComboBox1.Text, "hh:mm AMPM")
Ivan

This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our
online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.