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

[µo°Ý] ¦p¦ó§Q¥ÎVBA¤@Áä ¦Û°Ê¤ñ¹ï¤u§@ªíA & BªºCÄæ¬Û²§¸¹½X¡H

¥»©«³Ì«á¥Ñ RCRG ©ó 2015-11-12 16:10 ½s¿è

¦^´_ 2# lpk187


    ¡@ÁÂÁÂlpk187¤jªº¸Ñµª¡A§¹¥þ²Å¦X§Ú©Ò­nªº(C2:C1000½d³ò¿ù¤F¡A§Ú¦Û¦æ­×¥¿¤F)¡F
¹ï¤F¡AMsgbox§Ú¦pªG«e­±­n¦b¥[¨Ç¤¤¤å "¬Û²§¸¹½X¦p¤U¡GL777779,L787878C,L989598"¡A³o¼Ë­n¦p¦ó­×§ï©O?

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2015-11-12 14:28 ½s¿è

¦^´_ 1# RCRG
Msgboxªº³Ì¤j¦r¤¸¦h¤Ö¡A¤£ª¾¹D¡A¤£¹L¨ÌVBE»¡©ú:³Ì¤jªø«×¤j¬ù¬O1024­Ó¦r¤¸¡A¥Ñ¨Ï¥Î¦r¤¸ªº¼e«×¨M©w¡C¦pªG prompt ¶W¹L¤@¦æ¡A±z¥i¥H¦b¨C¤@¦æ¤§¶¡¥Î´_¦ì¦r¤¸(Chr(13))¡B´«¦æ¦r¤¸ (Chr(10)) ©Î¬O´_¦ì¦r¤¸»P´«¦æ¦r¤¸ªº²Õ¦X (Chr(13) & Chr(10)) ¨Ó°µ°Ï¹j¡C
¬O¤£¬O´«¦æ«á¥i¥H¼W¥[¡A¤£½T©w¡C½Ð¦Û¦æ°Ñ¦ÒVBE»¡©ú
  1. Sub «ö¶s1_Click()
  2. Dim Rng As Range
  3. With Sheets("B")
  4.     For Each Rng In .Range("C2:CC1000")
  5.         If Rng <> "" Then
  6.             Set da = Sheets("A").Range("c3:c79").Find(Rng.Value, LookAt:=xlWhole, SearchDirection:=2)
  7.             If da Is Nothing Then
  8.                 aa = aa & Rng.Value & ","
  9.             Else
  10.                 Set da = Nothing
  11.             End If
  12.         End If
  13.     Next
  14.     aa = Left(aa, Len(aa) - 1)
  15.     MsgBox aa
  16. End With
  17. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ®É®É¦n¤ß´N¬O®É®É¦n¤é¡C
ªð¦^¦Cªí ¤W¤@¥DÃD