VBA Code for Bolding Certain words in Concatenate Formula

sjay22

New Member
Joined
Jan 26, 2018
Messages
1
Hello All- I have been trying to expand my excel skills but I have yet to learn VBA Code. Below is my concatenation and I am trying to bold all H$1,": ", ,I$1,": "..... through Q$1,": "

=CONCATENATE(H$1,": ",H2,CHAR(10),I$1,": ",I2,CHAR(10),J$1,": ",J2,CHAR(10),K$1,": ",K2,CHAR(10),L$1,": ",L2,CHAR(10),M$1,": ",M2,CHAR(10),N$1,": ",N2,CHAR(10),O$1,": ",O2,CHAR(10),P$1,": ",P2,CHAR(10),Q$1,": ",Q2,CHAR(10))

This is for a whole range of cells I am using column F:F for my data.

Any help is greatly appreciated!

Thanks in advance :)
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello All- I have been trying to expand my excel skills but I have yet to learn VBA Code. Below is my concatenation and I am trying to bold all H$1,": ", ,I$1,": "..... through Q$1,": "

=CONCATENATE(H$1,": ",H2,CHAR(10),I$1,": ",I2,CHAR(10),J$1,": ",J2,CHAR(10),K$1,": ",K2,CHAR(10),L$1,": ",L2,CHAR(10),M$1,": ",M2,CHAR(10),N$1,": ",N2,CHAR(10),O$1,": ",O2,CHAR(10),P$1,": ",P2,CHAR(10),Q$1,": ",Q2,CHAR(10))
You cannot change the formatting for part of a text string that was produced by a formula. If you were to remove your formulas and use the Change event for the worksheet to produce the same results your formulas were producing, then you could format parts of the text differently than the rest of the text because now your text would be a constant that is not from a formula.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,241
Members
449,075
Latest member
staticfluids

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