Solved

Table Automation in MS Word

Posted on 2007-11-28
1
882 Views
Last Modified: 2008-02-01
Using an existing word document which is opened via Visual Basic in MS Access, how do I add or delete rows to an existing table. The existing table contains 5 rows and two columns.  The number of columns will not change just the number of rows
0
Comment
Question by:marcdtucker
[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
1 Comment
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 125 total points
ID: 20368002
Dim wdTable as Word.Table
Dim wdDoc as Word.Document
Dim wdRow as Word.Row

Set wdTable = wdDoc.Tables(1)

'To add a Row
set WdRow = wdTable.Rows.Add


'To delete a row
wdTable.Rows(3).Delete
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

717 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