word - vba - template and table

D

Daniel

My user gave me a word doc that has tables and texts inside the tables.
Instead of building it from scratch using vba, can I save it into template
and read it in using vba and change some fonts and text contents?

Thanks
Daniel
 
S

Shauna Kelly

Hi Daniel

There are two options.

First way: open the document. File > Save As. In the "Save as Type" box,
choose Word Template. The advantage of this way is that it is incredibly
simple and takes no time at all. The disadvantage is that it will bring into
the template any "baggage" in the document, such as unused list templates,
potentially corrupt tables etc.

Second way: File > New and choose to create a new Template. Copy all
*except* the last paragraph mark from the document and paste the content
into the new template. The advantage of doing it this way is that you are at
least starting off with a clean template, generated from within the Word
..exe file.

Hope this helps.

Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
 
D

Daniel

How can I refer to the cells in each already existing table and modify the
text in some of the cells in different table? If there are table possible
within a table, is there a way to find it out and if it is, how can I refer
the cell within a table within another table cell?

Thanks
Daniel
 
D

Daniel

Thanks for your reply. My user gave me a word doc that has nested table. Is
there a way to find manually certain cell number in a nested table and use it
in vba to replace certain text within that cell programmatically? I am using
vb 6 in visual studio 6 and word 2000.

Thanks
Daniel
 

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