oword = createobject("word.application") with oword .visible=.t. oword.documents.open( "c:\wt\aa.doc") oword.activedocument.saveas("newdoc") oword.activedocument.bookmarks("mydocdate").select .selection.text=dtoc(date()+25)&&Opss..........code change the alignment frrom left to right oword.activedocument.bookmarks("mtxtsum").select .selection.text="My new text5" endwith