General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only