create table

W

William

hi,

in vba for word xp, how can i insert the table to the very, very end of the first page of the doc.? put a frame at the end, and insert the table to it?

thanks,

william.


--
 
J

Jonathan West

William said:
hi,

in vba for word xp, how can i insert the table to the very, very end of
the first page of the doc.? put a frame at the end, and insert the table to
it?


How about inserting the table into the first page footer. Would that do?
 
W

William

hi,

thanks. i created a big table with 1 column and 3 rows on the page for layout. then, i created continuous sections on the first and the third rows because in the future, i want to protect data in the rows/sections. when i execute the following code, the module always writes to the first row of the table even if the page is NOT protected at all. on the other hand, if i remove the sections form the rows, the module seems to work fine. does anyone has any idea?

Sub InsertTextInCell()

If ActiveDocument.Tables.Count >= 1 Then
With ActiveDocument.Tables(1).Cell(Row:=3, Column:=1).Range
.Delete
.InsertAfter Text:="Cell 3,1"
End With
End If
End Sub

thanks,

william. :O)
 

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

Top