Two Fonts in One Cell

TFCJamieFay

Active Member
Joined
Oct 3, 2007
Messages
480
Hi all,

I'm trying to use two fonts in one cell. I'm using a formula that concatenates the values from two cells for my data labels in a waterfall chart. One cell has the label and should be formatted as Calibri, size 11 and the second cell has either a "P" or "Q" formatted as Webdings3. Is it possible to concatenate these two cells and use their original fonts?

Many thanks,

Jay
 
This is great. How can I concatenate columns of cells with different fonts? That is, not only a1 & b1 concatenated in c1, but also a2 & b2 in c2, a3 & b3 in c3, etc.
 
Upvote 0
This is great. How can I concatenate columns of cells with different fonts? That is, not only a1 & b1 concatenated in c1, but also a2 & b2 in c2, a3 & b3 in c3, etc.

Welcome to the MrExcel board!

Start by testing the setup & code in post #8 to see if that is the sort of thing that might be useful for you.
 
Upvote 0
Welcome to the MrExcel board!

Start by testing the setup & code in post #8 to see if that is the sort of thing that might be useful for you.

I have tried, but it doesn't work. This is the code modification that I try. Could you please help me how to make some alteration of the given code especially the bold one. Looking forward to your assistance. thank you.
Rich (BB code):
Sub concatenatecode()
Dim Val1 As String, Val2 As String, Val3 As String
Dim Fname1 As String, Fname2 As String, Fname3 As String
Dim Fsize1 As Long, Fsize2 As Long, Fsize3 As Long
Dim Lng1 As Long, Lng2 As Long, Lng3 As Long
With Range("A1")
    Val1 = .Value
    Fname1 = .Font.Name
    Fsize1 = .Font.Size
    Lng1 = Len(.Value)
    Fstyle1 = .Font.FontStyle
End With
With Range("A2")
    Val2 = .Value
    Fname2 = .Font.Name
    Fsize2 = .Font.Size
    Lng2 = Len(.Value)
    Fstyle2 = .Font.FontStyle
End With
With Range("A3")
    Val3 = .Value
    Fname3 = .Font.Name
    Fsize3 = .Font.Size
    Lng3 = Len(.Value)
    Fstyle3 = .Font.FontStyle
End With




With Range("A5")
    .Value = Val1 & Chr(10) & Val2 & Chr(10)
 
    .Characters(1, Lng1).Font.Name = Fname1
    .Characters(1, Lng1).Font.Size = Fsize1
    .Characters(1, Lng1).Font.FontStyle = Fstyle1
    .Characters(Lng1 + 1, Lng2).Font.Name = Fname2
    .Characters(Lng1 + 1, Lng2).Font.Size = Fsize2


    
    
End With
End Sub
 
Last edited by a moderator:
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top