Really really need Table help!!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been trying the whole day to insert a table within an existing table
in a Word document.

I can not figured it out! Please help me..... : (

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim loWord, loDocument, loActiveDoc, loSelection, loRange As Object

loWord = CreateObject("Word.Application")
loWord.Visible = True
loDocument = loWord.Documents.Open("c:\test.doc")
loSelection = loWord.Selection() 'Create Object
loRange = loSelection.Range 'Create Object
loActiveDoc = loWord.Application.ActiveDocument()

With loActiveDoc.Tables(1)
// Want to insert another table
End With
End Sub

i am using VB.Net 2005 Beta 1
i have also look at numerious examples to no avail.....
Any help would be appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top