Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm new to the visual basic world so please bare with me. I have the following string: ="If Q1 revenue is equal to "&TEXT(A10,"$#,##0")&" then everything is on track for fiscal 2004." I would like to able to keep everything as is and change only "Q1" to bold, blue font. Any suggestions? Thanks very much, Todd |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If it's a once-off, just select the Q1 part in the formula bar, and change
the font colour to blue. -- HTH ------- Bob Phillips ... looking out across Poole Harbour to the Purbecks "Todd" wrote in message ... Hi, I'm new to the visual basic world so please bare with me. I have the following string: ="If Q1 revenue is equal to "&TEXT(A10,"$#,##0")&" then everything is on track for fiscal 2004." I would like to able to keep everything as is and change only "Q1" to bold, blue font. Any suggestions? Thanks very much, Todd |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Unfortunately, since your string is the result of a formula, I don't believe
this can be done. -- Vasant "Todd" wrote in message ... Hi, I'm new to the visual basic world so please bare with me. I have the following string: ="If Q1 revenue is equal to "&TEXT(A10,"$#,##0")&" then everything is on track for fiscal 2004." I would like to able to keep everything as is and change only "Q1" to bold, blue font. Any suggestions? Thanks very much, Todd |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you can't apply character formatting to the result of a formula.
However, you could use an event macro. Put this in the worksheet code module (right-click on the worksheet tab and select View Code): Private Sub Worksheet_Calculate() With Range("B10") .Value = "If Q1 revenue is equal to " & _ Format(Range("A10").Value, "$#,##0") & _ " then everything is on track for fiscal 2004." With .Characters(4, 2).Font .Bold = True .ColorIndex = 5 End With End With End Sub Change "B10" to suit In article , "Todd" wrote: Hi, I'm new to the visual basic world so please bare with me. I have the following string: ="If Q1 revenue is equal to "&TEXT(A10,"$#,##0")&" then everything is on track for fiscal 2004." I would like to able to keep everything as is and change only "Q1" to bold, blue font. Any suggestions? Thanks very much, Todd |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Font Formatting | Excel Discussion (Misc queries) | |||
display value as % in concantenated cell | Excel Discussion (Misc queries) | |||
Change font formatting in a concatenated string | Excel Discussion (Misc queries) | |||
Formatting font | Excel Discussion (Misc queries) | |||
Text concantenated with a link to another spreadsheet field | Excel Worksheet Functions |