Currency format email Subject line

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
781
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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,216,376
Messages
6,130,257
Members
449,568
Latest member
mwl_y

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