R
Rob Stewart
I think I have stumbled onto a way for this in the past, but cannot recall it
- so I'm pretty sure it is possible...
In Word 2003, if you have a current cursor selection of 1 character length,
and that character is either a single opening or closing bracket of an XML
tag (i.e. no text selected, just one of the purple/white brackets), how can
you detect that?
asc( Selection ) produces an error as the bracket does not have an ASCII
value, and Selection.Text returns no value (and is not null).
There must be a way to detect this? FYI I need to do this in C#, but I'd
think that would be irrelevant.
Cheers,
Rob
- so I'm pretty sure it is possible...
In Word 2003, if you have a current cursor selection of 1 character length,
and that character is either a single opening or closing bracket of an XML
tag (i.e. no text selected, just one of the purple/white brackets), how can
you detect that?
asc( Selection ) produces an error as the bracket does not have an ASCII
value, and Selection.Text returns no value (and is not null).
There must be a way to detect this? FYI I need to do this in C#, but I'd
think that would be irrelevant.
Cheers,
Rob