Word VBA «ü©w½d³ò¨ú¥N°ÝÃD
 
- ©«¤l
 - 47 
 - ¥DÃD
 - 19 
 - ºëµØ
 - 0 
 - ¿n¤À
 - 82 
 - ÂI¦W
 - 0  
 - §@·~¨t²Î
 - win  
 - ³nÅ骩¥»
 - xp 
 - ¾\ŪÅv
 - 20 
 - µù¥U®É¶¡
 - 2014-7-4 
 - ³Ì«áµn¿ý
 - 2021-9-4 
 
  | 
 Word VBA «ü©w½d³ò¨ú¥N°ÝÃD
                
¦U¦ì°ª¤â¦n¡ã 
§Ú¼g¤F¤@ÓFunction ¨Ó°õ¦æ«ü©w½d³ò¡B«ü©w¤å¦r¡B«ü©w©³¦âªº¨ú¥N 
¥i¬O°õ¦æ®Éµo²{¨Ã¨S¦³¿ìªk«ü¦b«ü©w½d³ò¤¤¶i¦æ¨ú¥N ¦Ó¬O·|Åܦ¨¾ã½g¨ú¥N- Public Function myFun_findTxt2addShading( _
 
 -                 str_findTxt As String, _
 
 -                 range_myRange, _
 
 -                 str_repTxt As String, _
 
 -                 str_ShadingColor As String) As Boolean
 
 -     
 
 -     Dim boolean_checkFound As Boolean
 
 -     boolean_checkFound = False
 
  
-     range_myRange.Select
 
 -     With Selection
 
 -         .Find.ClearFormatting
 
 -         .Find.Replacement.ClearFormatting
 
 -         .Find.Text = str_findTxt
 
 -         .Find.Replacement.Text = str_repTxt
 
 -         .Find.Forward = True
 
 -         .Find.Replacement.Font.ColorIndex = str_RepFontColor
 
 -         .Find.Wrap = wdFindStop
 
 -         Do While .Find.Execute
 
 -             Selection.Shading.Texture = wdTextureNone
 
 -             Selection.Shading.ForegroundPatternColor = wdColorAutomatic
 
 -             Selection.Shading.BackgroundPatternColor = str_ShadingColor
 
 -             boolean_check = True
 
 -         Loop
 
 -         .Find.Format = False
 
 -         .Find.MatchCase = False
 
 -         .Find.MatchWholeWord = False
 
 -         .Find.MatchByte = False
 
 -         .Find.MatchWildcards = False
 
 -         .Find.MatchSoundsLike = False
 
 -         .Find.MatchAllWordForms = False
 
  
-     End With
 
 -     findTxt_Shading = boolean_checkFound
 
  
 
-     
 
 - End Function
 
 - Sub test()
 
 -     
 
 -     a = myFun_findTxt2addShading("¤@", Selection.Range, "¤@", wdColorYellow)
 
  
- End Sub
 
  ½Æ»s¥N½X ¦³¤H¥i¥HÀ°¦£¸Ñ¨M¶Ü¡ã¡ã¡ã 
ÁÂÁÂ |   
 
 
 
 | 
| 
 | 
 | 
 | 
 | 
 | 
 
- ©«¤l
 - 7 
 - ¥DÃD
 - 0 
 - ºëµØ
 - 0 
 - ¿n¤À
 - 7 
 - ÂI¦W
 - 0  
 - §@·~¨t²Î
 - win10 
 - ³nÅ骩¥»
 - word10 
 - ¾\ŪÅv
 - 10 
 - µù¥U®É¶¡
 - 2018-12-30 
 - ³Ì«áµn¿ý
 - 2020-6-21 
 
  | 
                
| 
¨ú¥N¤§«á¡A½d³ò»Ý¤£»Ýn«·s¿ï¨ú |   
 
 
 
 | 
| 
 | 
 | 
 | 
 | 
 |