Hello,
I wrote a macro to create powerpoint presentations from an excel macro and I need to format the variable BWRep in red when negative. I am using the following instruction:
Dim BWRep As Long
'
'
'apply tittle to the slide
.Shapes.Title.TextFrame.TextRange = "MONTHLY EXPENSES" & vbCrLf & "2007 & 2008 C.Y. - " & sTitle & vbCrLf & _
"B/W =" & Format(BWRep, "$##,##0;[Red]($##,##0)")
The variable is following the currency format, but is not changing color when negative. What am I doing wrong?
Thanks
Configuration: Windows Vista Firefox 3.0.1