B
Bo Hansson
How do I detect the event when a user puts the insertion point into a
specific table in a document?
/BosseH
specific table in a document?
/BosseH
Bo Hansson said:How do I detect the event when a user puts the insertion point into a
specific table in a document?
/BosseH
Jean-Guy Marcil said:Bonjour,
Dans son message, < Bo Hansson > écrivait :
In this message, < Bo Hansson > wrote:
|| How do I detect the event when a user puts the insertion point into a
|| specific table in a document?
||
Jay's answeer was excellent, but I tought I'd warn you about a potential
problem.
Be careful about using the table index in the code. If the user adds/removes
tables in the document, then this index will change.
Or did I miss something?
In this message said:Jean-Guy, you're absolutely correct. That's what I meant when I said
'Change the "ActiveDocument.Tables(2).Range" bit to detect the
specific table you have in mind.' It's good to emphasize the point,
though. Since I don't know exactly how Bo defines 'a specific table',
I can't suggest a better way of determining whether the table
containing the selection is the 'right' one.