Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation - Table Objects
Message
From
25/10/2006 13:41:53
 
 
To
25/10/2006 10:16:33
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01164187
Message ID:
01164472
Views:
14
>I have changed the code to the following. I am still getting an error however on the line that contains the MoveLeft command. The error is "OLE error code 0x80020006: Unknown name". Is moveleft a method of Range?
>
>WITH .Rows[nRow]
> .Height = 25
>
> .Cells[1].Range.InsertAfter( lcDescription )
> .Cells[1].Range.MoveLeft( 2, 1, 1 )
> .Cells[1].Range.Font.Bold = .T.
>
>ENDWITH

Good catch. MoveLeft doesn't apply to Range, which makes sense, because it's about Selection. Use Expand instead.

BTW, I checked this using the VBA Help for Word. You may have to specifically install it, but it's the best place for looking up the syntax for automating Word.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform