vba to concatenate cells with different font sizes & colour and keep formatting

cjcass

Well-known Member
Joined
Oct 27, 2011
Messages
683
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Wonder if this can be achieved - I need to be able to concatenate 3 cells each with different font attributes (size & colour) and retain the original font attributes of each cell when they have been brought together. Each cell will contain text (1-2 words) and I need to leave a couple of spaces between each cell's contents when they are brought together.

Example;
A5 contains 'Apples' (font size 25, RGB 178,0,0)
B5 contians 'Pears' (font size 12, RGB 50,40,0)
C5 contians 'Lemons' (font size 18, RGB 50,200,40)
The font sizes and colurs are retained in the text string in cell D5 after concatenation.

Any help would be much appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
please ignore this thread - the detail is inaccurate, I will re-submit
(there doesn't seem to be an option on here to delete it!)
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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