Currency format email Subject line

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
786
Office Version
  1. 365
Hi i have this code for subject line of email

works fine but once i put the number format shows the word "false" in the subject line,

here is the code:

Code:
EmailSubject = "TNW a/c " & " " & ActiveSheet.Range("A3") & "," & " " & "Statement Of Account $ " & [COLOR=#ff0000][B]ActiveSheet.Range("I1").NumberFormat = "$#,##0.00_);($#,##0.00)"[/B][/COLOR]


how can i fix that?



thank you
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi, try like this instead:

Code:
EmailSubject = "TNW a/c " & " " & Range("A3") & "," & " " & "Statement Of Account $ " & Format(Range("I1").Value, "$#,##0.00;($#,##0.00)")
 
Upvote 0
sorry, i have one more question,

how can i use this
Code:
$ " & Format(Range("b9").Value, "$#,##0.00;($#,##0.00)")

in this code:

Code:
                strsub = "TNW a/c #" & " " & ThisWorkbook.Sheets("Icube").Range("A7").Value & " " & "and" & " " & " " & ThisWorkbook.Sheets("Icube").Range("A8").Value & ", " & "Credit Card charges authorization for the " & ThisWorkbook.Sheets("Icube").Range("J2").Value & " " & "Invoices" & "," & " $ " & ThisWorkbook.Sheets("Icube").Range("B9").Value


thanks again
 
Upvote 0
Hi, your new question is not clear to me?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top