Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need help with decimal places

change
X + 3.5

to

format(X + 3.5,"#.00")

Regards,
Tom Ogilvy

Memnoch <randmtask at optushome . com . au wrote in message
u...
Im trying to work out how to pass values to an email with two decimal
places.

ie:

xlRg.Offset(2, 12).Formula = "=HYPERLINK(" & Chr(34) & "mailto:" & Email &
"?subject=" & X + 3.5 & "&Body=" & Msg & Chr(34) & ", " & Chr(34) & "Send
Email" & Chr(34) & ")"

For the instances where (X+3.5) is, say, 40.51 there is no problem, as it
will say 40.51 in the email
If (X+3.5) is 41.50 there is a problem, as it will say 41.5 in the email,
not 41.50

cheers,

Memnoch




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Need help with decimal places


"Tom Ogilvy" wrote in message
...
change
X + 3.5

to

format(X + 3.5,"#.00")

Regards,
Tom Ogilvy


Thanks mate, that was a big help!

Memnoch


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
Decimal Places Tafmutt Excel Discussion (Misc queries) 2 March 14th 07 09:22 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
Decimal Places Rab Swinney Excel Discussion (Misc queries) 5 January 10th 07 07:01 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
decimal places Simon0009 Excel Discussion (Misc queries) 2 June 3rd 05 06:20 PM


All times are GMT +1. The time now is 09:07 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"