I have solved this problem. The solution is in two parts. First, I changed the contents of the comment field in the report to this:
#UR XLSF="0.00" + Chr(34) +" Cr" + Chr(34) + ";0.00[Red]" + Chr(34) + " Dr" + Chr(34) Second I had to make changes to the XFRX.PRG - specifically to modify the OutStyles procedure of the XLSWriter class. This line lcFormatString = STRTRAN(lcFormatString," ","\\ ") had to be changed to lcFormatString = STRTRAN(lcFormatString," ","\ ") and the following three lines needed to be added lcFormatString = STRTRAN(lcFormatString,";","\;") lcFormatString = STRTRAN(lcFormatString,"[","\[") lcFormatString = STRTRAN(lcFormatString,"]","\]") I hope this may be useful to somebody else Paul Newton -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Paul Newton Sent: 12 December 2011 15:05 To: [email protected] Subject: Problem with XFRX Hi all I am having difficulty in formatting cells in an Excel sheet produced from a VFP report using XFRX. I want the following to be the custom format 0.00" Cr";[Red]0.00" Dr" And if I type this in Excel in the Format Cells dialog it works fine. What I cannot do is get this to work by editing the comment on the field in the report. The following do NOT work #UR XLSF=[0.00" Cr";[Red]0.00" Dr"] #UR XLSF='0.00" Cr";[Red]0.00" Dr"' And fairly obviously #UR XLSF="0.00" Cr";[Red]0.00" Dr"" I am completely stuck so any ideas would be highly appreciated Paul Newton --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

