Override built-in functionality

N

Noopur

hi ,
I want to add certain xml tags automatically within each cell whenever a
cell is inserted in word .

Plz help ..
 
C

Cindy M.

Hi =?Utf-8?B?Tm9vcHVy?=,
I want to add certain xml tags automatically within each cell whenever a
cell is inserted in word .
More information is required.

1. Version of Word

2. Programming environment: is this a Word VBA project or something else?
What?

3. Tell us more about the "cells". Cells are usually part of a table;
describe the table. How would you expect "a cell" is inserted?

4. Have you mapped a schema to the document?

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 :)
 
N

Noopur

Hi,
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.

- Noopur
 
C

Cindy M.

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top