J
Jean-Guy Marcil
Bonjour,
Dans son message, < James > écrivait :
I have just tried both Helmut and Jeff's code and everything works as
expected.
So, I am sorry but you are doing something wrong or there is something wrong
with your document, maybe your table is corrupted. Have you tried to test
the code on a brand spanking new document? Type a few words, hit enter,
insert a table, select it and run either Helmut or Jeff's code. Does that
work? If so, your previous document is corrupted in some way or there is
something going on that you are not aware of that gives the result you are
seeing.
If you want you can send me your document with the code and I will have a
look at it.
Just un-mangled my email in my signature.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
Dans son message, < James > écrivait :
In this message said:No, because if I fiddle with the length of the word preceding the
table, the tablerange.start result changes as a result.
I have just tried both Helmut and Jeff's code and everything works as
expected.
So, I am sorry but you are doing something wrong or there is something wrong
with your document, maybe your table is corrupted. Have you tried to test
the code on a brand spanking new document? Type a few words, hit enter,
insert a table, select it and run either Helmut or Jeff's code. Does that
work? If so, your previous document is corrupted in some way or there is
something going on that you are not aware of that gives the result you are
seeing.
If you want you can send me your document with the code and I will have a
look at it.
Just un-mangled my email in my signature.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org