Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default formatting text/number in a command


Hi,

I have been working on a report and it requires capturing data fro
another sheet...

I used this command :

+"The Profit for the year 2003 i
:"&TEXT('Sheet2'!A2,"$#,##0.00);[red]($#,##0.00)")

but the negative numbers are not displayed in red if I use this comman
like Excel does if we format the negative numbers to display in re
using the format cell/number option.

Another problem is that I would like to display some words in Bold
and/or underline/different colours/italics, like for example, in th
above command , if I want to display
"The Profit ......year 2003" i
bold/undeline/italics/colour...what do i do???

PLEASE HELP !!!!!

THANX IS DUE IN ADVANCE!!!

ARVIN

--
mnarvin
-----------------------------------------------------------------------
mnarvind's Profile: http://www.excelforum.com/member.php...fo&userid=1520
View this thread: http://www.excelforum.com/showthread.php?threadid=26839

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default formatting text/number in a command

You can't change colors or bolding with a formula. You can't bold or color
some words in a string unless the entry is hardcoded in the cell (no
formulas).

You would need to use code to build the result and do the formatting so the
result is hard coded.

--
Regards,
Tom Ogilvy

"mnarvind" wrote in message
...

Hi,

I have been working on a report and it requires capturing data from
another sheet...

I used this command :

+"The Profit for the year 2003 is
:"&TEXT('Sheet2'!A2,"$#,##0.00);[red]($#,##0.00)")

but the negative numbers are not displayed in red if I use this command
like Excel does if we format the negative numbers to display in red
using the format cell/number option.

Another problem is that I would like to display some words in Bold
and/or underline/different colours/italics, like for example, in the
above command , if I want to display
"The Profit ......year 2003" in
bold/undeline/italics/colour...what do i do???

PLEASE HELP !!!!!

THANX IS DUE IN ADVANCE!!!

ARVIND


--
mnarvind
------------------------------------------------------------------------
mnarvind's Profile:

http://www.excelforum.com/member.php...o&userid=15205
View this thread: http://www.excelforum.com/showthread...hreadid=268391



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
Help with Formatting Number as Text klafert Excel Worksheet Functions 5 January 6th 10 05:38 PM
Pivot Table Error Message - "Command Text not set for command obje Jeff Divian Excel Discussion (Misc queries) 0 November 7th 07 10:26 PM
Formatting from Number to Text FredL Excel Discussion (Misc queries) 4 December 8th 06 02:52 PM
Formatting Number as Text Tom Ogilvy Excel Programming 0 July 27th 04 07:05 PM
Formatting Number as Text Frank Stone Excel Programming 0 July 27th 04 07:02 PM


All times are GMT +1. The time now is 09:08 AM.

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"