Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Alexander de Rooij
  Where is Alexander de Rooij?
 Tilburg
 Netherlands
 Alexander de Rooij
 Tags
Subject: Syntax error with Word 2007 automation
Thread ID: 143298 Message ID: 143298 # Views: 3 # Ratings: 0
Version: Visual FoxPro 9 Category: Microsoft Office Automation
Date: Monday, August 27, 2007 3:30:31 PM         
   


Hi all,

When I use the line below I get a syntax error form vfp 9 and thats it.
Does anyone have a clue on this one??

ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:=5, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:=wdAutoFitFixed

I have used the macro recording in Word and it gives me te same code in the macro.

Please help ....

Greetings Alexander

ENTIRE THREAD

Syntax error with Word 2007 automation Posted by Alexander de Rooij @ 8/27/2007 3:30:31 PM
RE: Syntax error with Word 2007 automation Posted by Mike Gagnon @ 8/27/2007 4:16:42 PM
RE: Syntax error with Word 2007 automation Posted by Alexander de Rooij @ 8/27/2007 7:30:48 PM
RE: Syntax error with Word 2007 automation Posted by Cetin Basoz @ 8/27/2007 7:50:34 PM
RE: Syntax error with Word 2007 automation Posted by Alexander de Rooij @ 8/27/2007 9:14:26 PM
RE: Syntax error with Word 2007 automation Posted by Ken Murphy @ 8/27/2007 9:17:08 PM