wApp.Selection.Find.ClearFormatting;
wApp.Selection.Find.Replacement.ClearFormatting;
wApp.Selection.Find.Text:=docText;
wApp.Selection.Find.Replacment.Text:=newText;
wApp.Selection.Find.Forward:=True;
wApp.Selection.Find.Wrap:=wdFindContinue;
wApp.Selection.Find.Format:=False;
wApp.Selection.Find.MatchCase:=False;
wApp.Selection.Find.MatchWholeWord:=True;
wApp.Selection.Find.MatchByte:=True;
wApp.Selection.Find.MatchWildcards:=False;
wApp.Selection.Find.MatchSoundsLike:=Fasle;
wApp.Selection.Find.MatchAllWordForms:=Fasle;
wApp.Selection.Find.Execute(Replace:=wdReplaceAll);
等
wdReplaceAll,wdFindContinue均提示有错
已经Uses COMOBJ
wApp.Selection.Find.Replacement.ClearFormatting;
wApp.Selection.Find.Text:=docText;
wApp.Selection.Find.Replacment.Text:=newText;
wApp.Selection.Find.Forward:=True;
wApp.Selection.Find.Wrap:=wdFindContinue;
wApp.Selection.Find.Format:=False;
wApp.Selection.Find.MatchCase:=False;
wApp.Selection.Find.MatchWholeWord:=True;
wApp.Selection.Find.MatchByte:=True;
wApp.Selection.Find.MatchWildcards:=False;
wApp.Selection.Find.MatchSoundsLike:=Fasle;
wApp.Selection.Find.MatchAllWordForms:=Fasle;
wApp.Selection.Find.Execute(Replace:=wdReplaceAll);
等
wdReplaceAll,wdFindContinue均提示有错
已经Uses COMOBJ
解决方案 »
- Excel导入SQL时Excel工作表名称不能以数字开头的问题
- 关于用delphi通过串口发送文件的问题
- 编译的时候需要firstclass_d4
- 如何判断一个edit的输入是字符还是汉字
- 在線等;請問如何將*.txt文件從一個文件夾剪切到另一個文件夾
- 拜托!回答一下!
- 那里有devexpress空件下载(delphi6.0)
- 调试时,怎样才能定位内存错(如越界)的地方?
- 怎样把GIF动画打包进程序
- 什么时候用showmodal?
- 如何得到Tclientsocket的状态.急急加急
- 开发基于internet网络环境下的进销售存软件是使用soap/webservices还是用dcom/midas?多层开发比c/s模式有什么优势?
然后:"工具"-"宏"-"Visual Basic"编辑器
然后:"视图"-"对象浏览器"
然后选择"所有库"选项,然后输入你想要查看的常量名如:wdReplaceAll
在对象浏览器的最下方你能看到每个常量的数值祝你好运