View Single Post
 
Old 07-24-2011, 06:13 AM
hklein hklein is offline Windows XP Office 2007
Novice
 
Join Date: Jul 2011
Posts: 23
hklein is on a distinguished road
Default adding table to a particular place

Hi everyone,

I would like to get some help on adding a table to a given place into a word document from an excel macro.
I used thwe word macro-recorder to get the syntax, but it doesn't work from excel, and it doesn't answer my question, how to insert the table to the place where I want it to be.

Code:
I wanted to do it something like this:
Dim objword As Object
Dim docword As Object
Set docword = objword.documents.Add(Path & "\test.dotx.")
docword.tables.add Range:=docword.Bookmarks("mybookmark"), numrows:=2, numcolumns:=2
all help would be appreciated
Thanks
Reply With Quote