467,911 Members | 1,527 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,911 developers. It's quick & easy.

Format problem in excel sheet data retrieval

Hi all,

I am developing a vb application to retrive data from excel file using excel object.

But the probelm is, the extracted data is not in the correct format.
I am retriving time values such as 22:29 ie in HH:MM format.But my retrived data will be like this:0.965972222 . How can I retrive data in the correct format?
Please help me..
Mar 17 '08 #1
  • viewed: 970
2 Replies
Expert 1GB

Try this :

Text1.Text = Format(0.965972222 ,"HH:MM")

Mar 18 '08 #2

Try this :

Text1.Text = Format(0.965972222 ,"HH:MM")

Hi Veena,

Its working fine now. I had tried this function before, but at that time it is working erronously ie. for some values it is showing correct format , but for others not.
I have find out the problem. It is with worksheets. My excel sheet contain several worksheets, and I was using the wrong one.After using the correct worksheet it is solved.Anyway, thank you for your help.
Mar 18 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by EJO | last post: by
14 posts views Thread by pmud | last post: by
12 posts views Thread by elziko | last post: by
3 posts views Thread by implicate_order | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.