Hi,

Can anyone convert the following code from early binding to late binding for
Word?  I have searched for awhile but couldn't find anything.


Go to the bookmark and type the text:

   - objWord.Selection.GoTo(What:=Word.WdGoToItem.wdGoToBookmark,
   Name:="Date")
   - objWord.Selection.TypeText(Text:=("12/31/2010"))

Move the cursor left and down:

   - objWord.Selection.MoveLeft(Unit:=12)
   - objWord.Selection.MoveDown(Unit:=5, Count:=1)

Insert a line break:

   -
   
objWord.Selection.InsertBreak(Microsoft.Office.Interop.Word.WdBreakType.wdLineBreak)



Thanks,

Albert

Reply via email to