Solved

Table Automation in MS Word

Posted on 2007-11-28
1
878 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
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expression Evaluater 3 37
Help with error in Query 2 31
FInd Image Control Gridview 3 20
Vb.net threads keep increasing 2 35
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

809 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