worddocument.range(startpos).find.execute( findtext, matchcase,
   matchwholeword, matchwildcards, matchsoundslike, matchallwordforms,
forward, wrap, format, replacewith, replace,Matchkashida,matchdicritics,
   matchAlefhamza,matchControl);
该函数的参数代表什么意思,如果我想替换多个地方参数应怎么设置。
比方说:我想把findtext的内容全部替换为replacewith的内容。
急!!急!!在线等待

解决方案 »

  1.   

    谢谢, bbs791109(小别) ,自己UP,
      

  2.   

    whitetiger8(蜗牛[我要一步一步往上爬]) 好像帮助上没有!谢谢,
      

  3.   

    在word中录制一个宏,查看宏代码,非关键参数使用nil代替
      

  4.   

    宏是怎么定义??things(平)能给个例子吗??
      

  5.   

    只帮你找到了例程,大家研究一下先。是用字符串delphi替换掉<#name>
    findtext := '<#name>';matchcase := false;matchwholeword := true;matchwildcards := false;matchsoundslike := false;matchallwordforms := false;forward := true;wrap := wdfindcontinue;format := false;replacewith := 'delphi';replace := true;worddocument.range.find.execute( findtext, matchcase, matchwholeword,matchwildcards, matchsoundslike, matchallwordforms, forward,wrap, format, replacewith, replace );
      

  6.   

    windwather() 谢谢,参数的个数不对!你在“葵花宝典”或“超级猛料”上看的吧!
      

  7.   

    word--工具--宏--录制宏--替换操作--停止录制--工具--宏--编辑