当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 请问windowxp开机,见不到桌面就蓝屏死记,安全模式也一样,该怎样恢复。越详细越好!谢谢! ......
 ·vfp的连编有什么不同    »显示摘要«
    摘要: vfp的连编有什么不同?,连编为应用程序,连编为应用程序,连编为dll文件有什么不同。 ......


这句话在pb中应该怎么写

我在pb中操作word,现在要进行替换  
  我先录制成宏,再改写成pb,  
  //////////////////宏语句  
  Selection.Find.ClearFormatting  
          Selection.Find.Replacement.ClearFormatting  
          With   Selection.Find  
                  .Text   =   "监理单位:"  
                  .Replacement.Text   =   "监理单位:单位名称"  
                  .Forward   =   True  
                  .Wrap   =   wdFindContinue  
                  .Format   =   False  
                  .MatchCase   =   False  
                  .MatchWholeWord   =   False  
                  .MatchByte   =   True  
                  .MatchWildcards   =   False  
                  .MatchSoundsLike   =   False  
                  .MatchAllWordForms   =   False  
          End   With  
          Selection.Find.Execute   Replace:=wdReplaceAll  
          Windows("未命名   中的文档").Activate  
          Selection.Find.ClearFormatting  
          Selection.Find.Replacement.ClearFormatting  
          With   Selection.Find  
                  .Text   =   "监理单位:"  
                  .Replacement.Text   =   "监理单位:单位名称"  
                  .Forward   =   True  
                  .Wrap   =   wdFindContinue  
                  .Format   =   False  
                  .MatchCase   =   False  
                  .MatchWholeWord   =   False  
                  .MatchByte   =   True  
                  .MatchWildcards   =   False  
                  .MatchSoundsLike   =   False  
                  .MatchAllWordForms   =   False  
          End   With  
  //////////////////////////////////////////  
  但是我不知道Selection.Find.Execute   Replace:=wdReplaceAll  
  这句话用应该怎么写  
  结果在pb中执行,只查找,不替换  
  string   ls_file  
  ls_file   =   e:\temp.doc  
  ole_word.insertfile(ls_file)  
  ole_word.activate(inplace!)  
  ole_word.object.application.selection.wholestory()  
  ole_word.object.Application.selection.find.text   =   监理单位:  
  ole_word.object.Application.selection.find.replacement.text   =监理单位:单位名称  
  ole_word.object.Application.selection.find.forward   =   TRUE  
  ole_word.object.application.selection.find.execute()

NO.1   作者: weinfo

up  
 

NO.2   作者: lzp_lrp

给我发个短消息,告诉我你的Email,   给你发一个VbaWrd.chm   里面有操纵Word的所有的属性、函数,   你在里面找找,肯定能解决


    摘要: 装完之后打开exchange exchange 5.5 administrator的时候弹出这样的提示: "connect to server" "what server do you want to connet to? " 提示筐后 "browse" 点积:“browse"提示 "the list of m......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE