Hi =?Utf-8?B?Tm9vcHVy?=,
1. Version of Word: Word 2007 B2TR .
2. Programming environment : I have a COM Add In which is written in C#
I mean to say that whenever a table is inserted or a row is added I want a
tag say<foo></foo> to be automatically inserted within each cell of the table
as default.
There isn't any event that's fired when a table is inserted in Word, or rows
added. Closest you could get would be the WindowSelectionChange event, which is
fired for just about everything - except for typing.
This would be too much of a problem if your code were VBA embedded in a Word
document or template because that will allow you to intercept the menu and
keyboard commands.
In Word 2007 the best you can do would be to customize the Ribbon, mapping your
code to the built-in buttons responsible for creating tables.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail