General information
Category:
COM/DCOM and OLE Automation
Title:
Word Automatic InsertSymbol
I am attempting to use Word automation to insert a box symbol into a Word Table. Everytime i get to the range inside of the table cell, I get the following error:
OLE IDispatch exception code 0 from Microsoft Word: This method or property is not available because the object does not refer to simple range or selection...
My code is something like this:
otable = oword.activedocument.tables.add( 1,5)
ocell = otable.cell( 1,3)
orange = ocell.range
orange.InsertSymbol( 9633,'',1 )
Can anyone help me to do this without the error?
DB
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