LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Trouble formatting a date variable to contain a time value

In the immediate window, type

?Format(1510,"00\:00")

then

?TimeValue(Format(1510,"00\:00"))

In article ,
Arch Stanton wrote:

If I could ask one more thing, what does the slash in the format string
("00\:00") do? I can't find it in VBA Help, but it seems to work.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble formatting date geordy67 Excel Worksheet Functions 6 July 27th 06 02:30 AM
Trouble formatting Date data LB Charts and Charting in Excel 1 May 1st 06 12:11 PM
Trouble with OpenText() and Date/Time Values rmac Excel Programming 0 March 20th 06 03:33 PM
Put only date (not time too) in variable from FileDateTime function mikeburg[_64_] Excel Programming 3 January 22nd 06 06:10 AM
Trouble setting variable as filename with date Elby Excel Programming 2 February 21st 04 03:05 PM


All times are GMT +1. The time now is 04:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"