Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Macro is pulling wrong date format into Email

Hello, I have a macro that is pulling the time from a cell, into the message
body of an email in Outlook. But, it is not pulling the time...it's pulling
the raw form.

Example:
Time should be: 10:00 AM
Pulling into the message body: 0.416666666666667

Something I'm doing wrong?

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200810/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Macro is pulling wrong date format into Email

try something like this

format(range("A1"),"hh:mmAM/PM")

--


Gary

"Gina_28 via OfficeKB.com" <u46866@uwe wrote in message
news:8bafb7f1b2679@uwe...
Hello, I have a macro that is pulling the time from a cell, into the
message
body of an email in Outlook. But, it is not pulling the time...it's
pulling
the raw form.

Example:
Time should be: 10:00 AM
Pulling into the message body: 0.416666666666667

Something I'm doing wrong?

Thanks

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200810/1



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
from date format convert to text format is wrong nooris Excel Discussion (Misc queries) 2 February 4th 10 03:41 PM
date in wrong format Mike New Users to Excel 3 November 15th 08 08:42 PM
Strange? VBA code returns wrong date format (not a date) zzxxcc Excel Programming 8 October 12th 07 09:13 AM
importing txt file and wrong date format... MACRO vs MANUAL [email protected] Excel Programming 2 October 4th 06 09:15 AM
Macro gives the wrong date format chin_un_len[_13_] Excel Programming 0 February 25th 06 12:46 AM


All times are GMT +1. The time now is 10:29 AM.

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"