Solved

Edit existing table in a word document

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get Client IP on RDS - VB.NET 15 67
rebind a grid after user clicks on node in treeview 1 41
Help with exporting to excel 4 36
ASP/VB email question 4 46
This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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