Hi,
I'm a bit of a beginner and I'm trying to write a macro to format a
cell that will change the colour and place in italics only a set
selection of the cell.
I want to select the section of the cell that occurs after two "//"
characters, and change the colour and put in italics the following
characters of the cell.
(So: "This is an example // this is the bit that needs to be formatted"
would be formatted to show the "This is an example" section as normal
text, and the "// this is the bit that needs to be formatted" would be
red italics.)
The problem is that the "//" doesn't occur at any set point in the cell
(ie, may be the 5th character or the 10th character etc) and I can't
seem to work out a way to change only that selection without actually
knowing in advance where it may occur...
This would then loop through the entire worksheet and stop when all
occurances have been reformatted.
I've searched extensively for something similar to start from but no
luck, any help would be muchly appreciated!
Thanks
Ren
Bookmarks