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

[µo°Ý] Ãö©ó¦Û°Ê¶ñ¤Jªº°ÝÃD

¦^´_ 10# GBKEE

GBKEE¤j
·Ó±z©Ò»¡ªº¤è¦¡±Nµ{§Ç¶K»sModule1¡A
¤]½T©w¤F¦U­Ó»Ý­n«ü©w¥¨¶°ªº³¡¤À¡A
µe­±¦b¶]ªº®É­Ô¥i¥H¬Ý¨£¨â­ÓSheets¦³¦b¹ï·Óªº·Pı¡A
¤£¹L¤´µM¥u¬OªÅ¶]¡A¼Æ¦r¨S¦³¦^¶ñ¡A
·|¬O³o¸Ìªº°ÝÃD¶Ü?¡@d% = DialogSheets("½Ð¿é¤J½s¸¹").EditBoxes(1).Text
EditBoxes(1).Text¤£¤Ó²M·¡©Ò«üªº¬O­þ­Ó³¡¤À
·Ð½Ð¤j¤j¦AÀ°¦£¬Ý¤@¤U¡AÁÂÁ¡C

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2010-12-30 17:05 ½s¿è

¦^´_ 11# littlea
¦bVBA¬Oµ¡¤¤
Sub test()
±Æ§Ç
Dim d%
I = 17
Do
    I = I + 1
    Sheets("¥X³f³qª¾³æ(½d¥»)").Select
    a$ = Cells(I, 1)
    If a$ = "" Then Exit Do
    Sheets("CL221").Select
     J = 8
     Do
      J = J + 1
      If Cells(J, 1) = "" Then Exit Do    '³o¦æ¦p¹Ï «öF9 ³]¤U ¤¤Â_ÂI ¤¤Â_«á   «öF8³v¦æ°õ¦æ      
      Debug.Print Cells(J, 1) & ";" & a$     '³o¦æ¥i¥Î À˵ø->  §Y®É¹Bºâµøµ¡    ¨Ó¬d¬ÝÅܼƭÈ
      If Cells(J, 1) = a$ Then
         Sheets("¥X³f³qª¾³æ(½d¥»)").Select
        P$ = Cells(I, 6)
         d% = DialogSheets("½Ð¿é¤J½s¸¹").EditBoxes(1).Text
         Sheets("CL221").Select
         Cells(J, d% + 14) = P$
        Exit Do
      End If
     Loop
   Loop
End Sub

TOP

ÁÂÁÂGBKEE¤j
§Ú¤j·§ª¾¹D­ì¦]¤F
À³¸Ó¬OCL221ªí¤¤ªÅ®æ³y¦¨Exit Do
§Ú¥ý§â­ì¥»ªí®æ½Õ¾ã¥H«á¦A´ú¸Õ¬Ý¬Ý
¦hÁ¤j¤jÄ@·Nªá¶O³o»ò¦h®É¶¡¡A·P¿E¤£ºÉ¡C

TOP

        ÀR«ä¦Û¦b : ¤p¨Æ¤£°µ¡B¤j¨ÆÃø¦¨¡C
ªð¦^¦Cªí ¤W¤@¥DÃD