ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to get different text formats in a concatenate function (https://www.excelbanter.com/excel-discussion-misc-queries/145778-how-get-different-text-formats-concatenate-function.html)

Evelyn

How to get different text formats in a concatenate function
 
hello,

I have two text cells which I combine into one. This goes ok, but now I
have to make part of the output in bold and part not. When I try to do this
in the formula bar by selecting the specific part, the bold button remains
grey. Anybody any suggestions ?

Thank you

Peo Sjoblom

How to get different text formats in a concatenate function
 
You can't format parts of a formula with different colours,
bold/italic/underline etc


--
Regards,

Peo Sjoblom



"Evelyn" wrote in message
...
hello,

I have two text cells which I combine into one. This goes ok, but now I
have to make part of the output in bold and part not. When I try to do
this
in the formula bar by selecting the specific part, the bold button remains
grey. Anybody any suggestions ?

Thank you




CLR

How to get different text formats in a concatenate function
 
You could do Copy PasteSpecial Values, to get rid of the formulas then do
formatting as you've described..........

Or, you could "simulate" something with code, but not maybe to your exact
needs...

Sub BoldMe()
ActiveCell.Characters(Start:=5, Length:=5).Font.FontStyle = "Bold"
End Sub

Vaya con Dios,
Chuck, CABGx3


"Evelyn" wrote:

hello,

I have two text cells which I combine into one. This goes ok, but now I
have to make part of the output in bold and part not. When I try to do this
in the formula bar by selecting the specific part, the bold button remains
grey. Anybody any suggestions ?

Thank you


Ron Rosenfeld

How to get different text formats in a concatenate function
 
On Fri, 8 Jun 2007 07:59:09 -0700, Evelyn
wrote:

hello,

I have two text cells which I combine into one. This goes ok, but now I
have to make part of the output in bold and part not. When I try to do this
in the formula bar by selecting the specific part, the bold button remains
grey. Anybody any suggestions ?

Thank you


You can only differentially format actual text strings. There is no ability to
do what you want with the result of a formula.

You could execute the formula in a VBA Sub, and have the Sub write a text
string to the cell, which could then be differentially formatted. But the
contents of the cell must be a text string.
--ron


All times are GMT +1. The time now is 06:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com