Change the default Table AutoFormat

S

Stefan De Schepper

Hi all,

I received a template in which there are 2 tables (I need the template for
programmatically filling those tables). The second one has no border. When I
select and copy this table into a new document, I get a table WITH borders.
I posted this message on microsoft.public.word.tables. I got an answer
stating that the two documents/templates have different Table AutoFormats
selected as the default.
My question now is: how can I programmatically change the default Table
AutoFormat of the destination document to the one of the source document?
Any help will be appreciated!

Stefan.
 
W

Word Heretic

G'day "Stefan De Schepper" <[email protected]>,

that information is correct. As you did not ask a question I will
engage my pyschic powers. Uh huh. Hmmm. OK, but a bit of a problem.

Examine the original table for its styling using the same method MS
does: first col, first row, last row , last col, shading vs borders vs
font. If you're lucky, the source table has actually been
autoformatted and you can read its AutoFormatType instead :)

Apply those derivatives to the target table after pasting by using
InsertedTable.Autoformat yada yada.

Hi all,

I received a template in which there are 2 tables (I need the template for
programmatically filling those tables). The second one has no border. When I
select and copy this table into a new document, I get a table WITH borders.
I posted this message on microsoft.public.word.tables. I got an answer
stating that the two documents/templates have different Table AutoFormats
selected as the default.
My question now is: how can I programmatically change the default Table
AutoFormat of the destination document to the one of the source document?
Any help will be appreciated!

Stefan.

Steve Hudson

Word Heretic, Sydney, Australia
Tricky stuff with Word or words for you.
Email: (e-mail address removed)
Products: http://www.geocities.com/word_heretic/products.html
Spellbooks: 728 pages of dump left and dropping...

The VBA Beginner's Spellbook: For all VBA users.
 

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