Solved

Edit existing table in a word document

Posted on 2004-09-06
3
173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Vb.net threads keep increasing 2 50
VB.net Open video relating to control 2 30
ModalPopup  question 22 38
How to set focus on a dynamic control 18 24
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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