Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default format time in messsage box

part of the code i am using in a macro is as follows

Dim timedue As String

timedue = "c" & rowAddress

reg = InputBox("" & Range(locatetrunk) & " Due On Site At :-" &
Range(timedue).NumberFormat = "hh:mm"& Chr$(13)

what i am hoping for is a way to display the "time" as a time in the message
box that appears when the macro is activated but cant find a way to "format"
the text

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default format time in messsage box

Rich,
You would normally use :
Format(<Value,"hh:mm")

Also I assume the InputBox is a typo and you mean MsgBox
Maybe:
reg = MsgBox(Range(locatetrunk).Value & " Due On Site At :-" &
Format(Range(timedue).Value, "hh:mm"))

NickHK

"Rich" wrote in message
...
part of the code i am using in a macro is as follows

Dim timedue As String

timedue = "c" & rowAddress

reg = InputBox("" & Range(locatetrunk) & " Due On Site At :-" &
Range(timedue).NumberFormat = "hh:mm"& Chr$(13)

what i am hoping for is a way to display the "time" as a time in the

message
box that appears when the macro is activated but cant find a way to

"format"
the text



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default format time in messsage box

thanks for that it works fine

no not a typo, the message is part of a imputbox , and is used to give the
DUE time of a item with a imput option to put a reason why it was late

thanks

Rich

"NickHK" wrote:

Rich,
You would normally use :
Format(<Value,"hh:mm")

Also I assume the InputBox is a typo and you mean MsgBox
Maybe:
reg = MsgBox(Range(locatetrunk).Value & " Due On Site At :-" &
Format(Range(timedue).Value, "hh:mm"))

NickHK

"Rich" wrote in message
...
part of the code i am using in a macro is as follows

Dim timedue As String

timedue = "c" & rowAddress

reg = InputBox("" & Range(locatetrunk) & " Due On Site At :-" &
Range(timedue).NumberFormat = "hh:mm"& Chr$(13)

what i am hoping for is a way to display the "time" as a time in the

message
box that appears when the macro is activated but cant find a way to

"format"
the text




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default format time in messsage box

Rich,
OK, I was just going by your subject line.

NickHK

"Rich" wrote in message
...
thanks for that it works fine

no not a typo, the message is part of a imputbox , and is used to give the
DUE time of a item with a imput option to put a reason why it was late

thanks

Rich

"NickHK" wrote:

Rich,
You would normally use :
Format(<Value,"hh:mm")

Also I assume the InputBox is a typo and you mean MsgBox
Maybe:
reg = MsgBox(Range(locatetrunk).Value & " Due On Site At :-" &
Format(Range(timedue).Value, "hh:mm"))

NickHK

"Rich" wrote in message
...
part of the code i am using in a macro is as follows

Dim timedue As String

timedue = "c" & rowAddress

reg = InputBox("" & Range(locatetrunk) & " Due On Site At :-" &
Range(timedue).NumberFormat = "hh:mm"& Chr$(13)

what i am hoping for is a way to display the "time" as a time in the

message
box that appears when the macro is activated but cant find a way to

"format"
the text






Reply
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
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 4 February 13th 09 04:34 PM
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 1 February 13th 09 01:37 AM
How to format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 0 February 13th 09 12:49 AM
How to type format time in decimal format & calculate time Cheyenne Excel Discussion (Misc queries) 1 February 13th 09 12:09 AM
About form messsage Avi Excel Programming 1 November 28th 05 03:04 PM


All times are GMT +1. The time now is 05:11 PM.

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

About Us

"It's about Microsoft Excel"