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

¦p¦ó¥ÎVBA¨ú¥XÃöÁä¦r

¦^´_ 1# jsc0518

If InStr([A1], "°£Åv°£®§") Then [B1] = "°£Åv°£®§"
¯u¤ß·PÁ¨C¤@¦ìÄ@·N¤À¨É©Ò¾Ç¡B«ü¾É·s¤âªº¤H!

TOP

¦^´_ 3# jsc0518
¯u¤ß·PÁ¨C¤@¦ìÄ@·N¤À¨É©Ò¾Ç¡B«ü¾É·s¤âªº¤H!

TOP

¦^´_ 3# jsc0518
  1. Option Base 1
  2. Sub test()

  3.     Dim str
  4.     str = Array("°£Åv°£®§", "º¦", "¶^", "µoªÑ®§")
  5.    
  6.     For i = 1 To [A1].End(xlDown).Row
  7.         For j = 1 To UBound(str)
  8.             If InStr(Cells(i, 1), str(j)) Then Cells(i, j + 1) = str(j)
  9.         Next
  10.     Next

  11. End Sub
½Æ»s¥N½X
¯u¤ß·PÁ¨C¤@¦ìÄ@·N¤À¨É©Ò¾Ç¡B«ü¾É·s¤âªº¤H!

TOP

¦^´_ 6# jsc0518

¥u­n§ïcells(¦C,Äæ)ªºÄ欰2´N¥NªíBÄæ¡A³o«D±`°ò¦¡Aºô¸ô¦hª¦¤å
  1. Option Base 1
  2. Sub test()

  3.     Dim str
  4.     str = Array("°£Åv°£®§", "º¦", "¶^", "µoªÑ®§")
  5.    
  6.     For i = 1 To [A1].End(xlDown).Row
  7.         For j = 1 To UBound(str)
  8.             If InStr(Cells(i, 1), str(j)) Then Cells(i, 2) = Cells(i, 2) & str(j)
  9.         Next
  10.     Next

  11. End Sub
½Æ»s¥N½X
¯u¤ß·PÁ¨C¤@¦ìÄ@·N¤À¨É©Ò¾Ç¡B«ü¾É·s¤âªº¤H!

TOP

        ÀR«ä¦Û¦b : ·O´d¨S¦³¼Ä¤H¡A´¼¼z¤£°_·Ð´o¡C
ªð¦^¦Cªí ¤W¤@¥DÃD