Formatting Text That Is Part Of A Concatenation

marty.e

New Member
Joined
Nov 23, 2005
Messages
2
Can anyone help me.

I am using Excel 2000 on Windows XP pro. I have used the following worksheet formula:

=CONCATENATE("Employees Name: ",L3," Week Start: ",TEXT(L4-DAY(6), "dd-mm-yyyy")," Week End: ",TEXT(L4, "dd-mm-yyyy"))

The trick now is that I want the text returned from the cells to be formatted differently (differnet color plus underlined) to the text returned from the formula ("Employees Name:" etc, etc)
Is there any way of doing this as I'm scratching my head.

Thanks in advance

Marty.E
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Thanks Kristy,

I'm relatively new at writing macros. Does the combining of text need to be done within the macro.
Are the
Characters.Font.ColorIndex = 3
functions the ones to use here keeping in mind that the the length of text returned from cell L3 will change?

Many thanks once again

Marty.E
 
Upvote 0
It doesn't necessarily have to be combined within the macro, no, but it can.

I'm not really in a place where I could write up an example for you, but you're on the right track with the Characters property.

You just need to write the macro so it finds the correct number of characters PLUS where the specific word will start so that it can format correctly.

This isn't exactly what you're looking for, but it might help:
http://www.mrexcel.com/board2/viewtopic.php?t=178628
 
Upvote 0

Forum statistics

Threads
1,226,505
Messages
6,191,434
Members
453,657
Latest member
DukeJester

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