F
FK
Hi,
For several years I've coped with this problem, but now I really want (need)
a solution. I hope any of you can help me out.
What's the case, well in Word XP (and 97 and 2000), if I try to change the
contents of a selected range in a table in a frame, it goes wrong. I've
tried to replace the text directly, and tried first emptying the selection.
In the text is for example '[test]' selected.
- When I use selection.range.text="" then Word leaves 't]' while it
shouldn't.
- When I use selection.range.delete, surrounding spaces are also deleted. If
I put a space in front and in back of '[test]' then it leaves just the one
space instead of two.
- When I use selection.typetext text:="replacement", the spaces also get
messed up.
The ever so strange thing is that it doesn't go wrong in a normal text, or
in a normal table (not in a frame). When I say frame I mean a to a frame
converted textbox (Or a table created in Word 2003 which is always a table
within a frame?)
Extra info:
I search for 'codes' in the text and based on the contents of the 'codes' I
replace them with a certain text. So I cannot use the standard Find/Replace
functions. And somehwat I do use it, just a little split up, find first and
do something and replace.
TIA!
For several years I've coped with this problem, but now I really want (need)
a solution. I hope any of you can help me out.
What's the case, well in Word XP (and 97 and 2000), if I try to change the
contents of a selected range in a table in a frame, it goes wrong. I've
tried to replace the text directly, and tried first emptying the selection.
In the text is for example '[test]' selected.
- When I use selection.range.text="" then Word leaves 't]' while it
shouldn't.
- When I use selection.range.delete, surrounding spaces are also deleted. If
I put a space in front and in back of '[test]' then it leaves just the one
space instead of two.
- When I use selection.typetext text:="replacement", the spaces also get
messed up.
The ever so strange thing is that it doesn't go wrong in a normal text, or
in a normal table (not in a frame). When I say frame I mean a to a frame
converted textbox (Or a table created in Word 2003 which is always a table
within a frame?)
Extra info:
I search for 'codes' in the text and based on the contents of the 'codes' I
replace them with a certain text. So I cannot use the standard Find/Replace
functions. And somehwat I do use it, just a little split up, find first and
do something and replace.
TIA!