Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Number formats

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 23 Oct 2007 11:25 GMT
HYCH
Am using the code below, to pull back the a list of Times (format
hh:mm)

But still shows as decimal numbers

any help please !!!

Private Sub UserForm_Initialize()
Dim cPart As Range
Dim ws As Worksheet
Set ws = Worksheets("Lists")
   For Each cPart In ws.Range("C1:C88")
 With Me.ComboBox1
   .AddItem cPart.Value
   .List(.ListCount - 1, 1) = Format(cPart.Offset(0, 1).Value,
"hh:mm")
 End With
   Next cPart
Me.ComboBox1.Value = ""
Me.ComboBox1.SetFocus
End Sub

Steve
JE McGimpsey - 23 Oct 2007 12:45 GMT
Hmm...

With times in D1:D88, times show, as times, for me in the second column
of the combobox...

What version of XL?

> HYCH
> Am using the code below, to pull back the a list of Times (format
[quoted text clipped - 20 lines]
>
> Steve

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.