M
Mindy
oWord is a Word document object. This code worked fine
using a Selection object. But I have now defined a range
object (oRange), because the oWord document object is so
long that it is taking too much time to run all the code
in this routine using the entire document. So oRange is
just the portion of the document I need.
The majority of the code has been modified to use the
Range object. But this snippet I cannot quite get tweaked
to use the Range object. This code is taking three values
from a data row view and putting it in three columns of a
table. What is the equiv of .TypeText using a Range object?
oWord.Selection.TypeText(Text:=drv.Row.Item
("NextDate").ToString)
oWord.Selection.MoveRight(Unit:=Word.WdUnits.wdCell)
oWord.Selection.TypeText(Text:=drv.Row.Item
("NextDeadline").ToString)
oWord.Selection.MoveRight(Unit:=Word.WdUnits.wdCell)
oWord.Selection.TypeText(Text:=drv.Row.Item
("Location").ToString)
Appreciate any input. Thanks.
using a Selection object. But I have now defined a range
object (oRange), because the oWord document object is so
long that it is taking too much time to run all the code
in this routine using the entire document. So oRange is
just the portion of the document I need.
The majority of the code has been modified to use the
Range object. But this snippet I cannot quite get tweaked
to use the Range object. This code is taking three values
from a data row view and putting it in three columns of a
table. What is the equiv of .TypeText using a Range object?
oWord.Selection.TypeText(Text:=drv.Row.Item
("NextDate").ToString)
oWord.Selection.MoveRight(Unit:=Word.WdUnits.wdCell)
oWord.Selection.TypeText(Text:=drv.Row.Item
("NextDeadline").ToString)
oWord.Selection.MoveRight(Unit:=Word.WdUnits.wdCell)
oWord.Selection.TypeText(Text:=drv.Row.Item
("Location").ToString)
Appreciate any input. Thanks.