ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

vba ¦p¦óÂ^¨úÃöÁä¦rªº¾ã­Ó¬q¸¨(¥]§t®æ¦¡)¨ì·sªºword¤å¥ó

vba ¦p¦óÂ^¨úÃöÁä¦rªº¾ã­Ó¬q¸¨(¥]§t®æ¦¡)¨ì·sªºword¤å¥ó

¦p¦óÂ^¨ú¤å¦r(¥]§t®æ¦¡Ãþ¦üwordª½±µ½Æ»s¥Hµ{¦¡§e²{)

¥H¤U¬O§Ú¦bºô¸ô¤W´M§ä¨ìªº¤@­Ó«Ü¼F®`ªºVBA

Sub ´M§ä()
  Set myRange = ActiveDocument.Content
  §äÔ£ = InputBox("§äÔ£?")
  §ä¨ì = myRange.Find.Execute(§äÔ£)
  Do While §ä¨ì
    ¥´¥] = ¥´¥] & myRange.Paragraphs(1)
    myRange.EndOf wdParagraph
    §ä¨ì = myRange.Find.Execute(§äÔ£)
  Loop
  If IsEmpty(¥´¥]) Then MsgBox "§äµL!": Exit Sub
  Documents.Add: Selection = ¥´¥]
End Sub

¥Lªº¥\¯à¥u¯à¥]§t¨ã¦³ÃöÁä¦rªº(1)¨º¤@­Ó¬q¸¨(2)®æ¦¡¶È¯àÀx¦s¯Â¤å¦r
(1)§Ú·Q®Ø¦í¥¦¥H¤Uªº¨â­Ó¬q¸¨(©ÎªÌ¬O¥i¥H§â­ì¤åªº¤T­Ó¬q¸¨·í¦¨¤@­Ó¬q¸¨¬Ý)
(2)Àx¦sªº®É­Ô§Ú·Q¥]§t©Ò¦³ªº®æ¦¡¼Ë¦¡(Ãþ½Æ»s)  
:P
«ô°U¦U­Ó¥O¤H·q¨Øªº°ª¤â §Ú¯uªº«Ü»Ý­n
¥ýÁÂÁ¦U¦ì¤F

        ÀR«ä¦Û¦b : ºw¤ô¦¨ªe¡C²É¦Ì¦¨ÅÚ¡A¤Å»´¤vÆF¡A¤Å¥Hµ½¤p¦Ó¤£¬°¡C
ªð¦^¦Cªí ¤W¤@¥DÃD