Solved! Go to Solution.
Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
I added a text box to a map and want to format certain parts of the text.
I followed the the examples on how to change color but all that shows up is the actual syntax. nothing changes.
for example, <CLR red ="255">Depaul</CLR> doesn't change the color red, it just reads as is?
is there something I am doing wrong? Using ArcMap 10.0
thanks
Enrique
I added a text box to a map and want to format certain parts of the text.
I followed the the examples on how to change color but all that shows up is the actual syntax. nothing changes.
for example, <CLR red ="255">Depaul</CLR> doesn't change the color red, it just reads as is?
is there something I am doing wrong? Using ArcMap 10.0
thanks
Enrique
Oh, wait a minute what you did should work.
Try using ' instead of "
Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
Do any of the labels contain the characters "&" or "<"? If so, these are special characters that interfere with the formatting tags. You have to replace them with their character codes of & and < like thisFunction FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
I tried both, but it just prints out the syntax?
It's a basic map that I added a text box to. when I try to format color though Change Symbol button, all the text changes. I just want certain words to be blue.
That was it! Thanks. Would never have figured that out.
Enrique
Glad to help. Don't forget to click the check mark to signify the question was answered.