Solved

Edit existing table in a word document

Posted on 2004-09-06
3
164 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now