Solved

Edit existing table in a word document

Posted on 2004-09-06
3
167 Views
Last Modified: 2010-04-23
Hi

I have an existing word document that has a table already in it. I can open the word document within vb but don't know how to reference that particular table inside the document as I need to edit it, by putting some values in it.

Thanks
Adam
0
Comment
Question by:adam_pedley
  • 2
3 Comments
 
LVL 4

Author Comment

by:adam_pedley
ID: 11988093
sorry, i have a habit of solving questions soon after i have asked them, its always the way but i have another query

can you name tables inside word

so instead of referencing tables like this objword.tables.item(2). whatever can you reference them like objword.tables.item("Table1"). whatever

If not how can you keep track of tables if you add another table to the word document
0
 
LVL 10

Accepted Solution

by:
123654789987 earned 500 total points
ID: 11988146
Hi adam,

If u see the definition of objword.tables.item it is of type int. So u won't be able to refer the table by a name.

It looks like u have to refer the table using numbers only
0
 
LVL 4

Author Comment

by:adam_pedley
ID: 11988166
yeh i figured as much

thanks :)
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question