- (setq Rtn (vlax-get-object "Word.Application"))
- (setq Activedoc (vla-get-ActiveDocument Rtn))
- (setq myRange(vlax-get-property Activedoc 'Content))
- (setq Find(vlax-get-property myRange 'Find))
- (setq DoFind(vlax-invoke-method Find 'Execute "工程名称" "1234" ))
|