Can you bold specific text in a cell that uses concatenation using VBA?

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
270
I have a cell containing a formula I use to concatenate content from various cells. I want to be able to only bold a portion of the resulting text in that cell.

My research has shown only scenarios where the text in a cell is just text -- not the result of a formula.

Is what I'm asking for possible with VBA?

I suppose an alternative would be to copy/paste the value of the concatenated cell to another cell and then apply the bold to the text I want.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,282
Office Version
  1. 365
Platform
  1. Windows
Is what I'm asking for possible with VBA?
Fraid not. You cannot change the format of part of a cell if it contains a formula.
But your alternative is possible.
 
Solution

rizzo93

Active Member
Joined
Jan 22, 2015
Messages
270
Fraid not. You cannot change the format of part of a cell if it contains a formula.
But your alternative is possible.
Ah, I was afraid of that. But glad that you could confirm it. Thanks!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
68,282
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,486
Messages
5,770,373
Members
425,612
Latest member
martinijr

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
Top