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

[µo°Ý] §R°£¬¡­¶Ã¯¸ê®Æ´NµLªk°õ¦æVBA¡A¥X²{¨S¦³³]©wª«¥óÅܼƩÎWITH°Ï¶ôÅܼÆ

[µo°Ý] §R°£¬¡­¶Ã¯¸ê®Æ´NµLªk°õ¦æVBA¡A¥X²{¨S¦³³]©wª«¥óÅܼƩÎWITH°Ï¶ôÅܼÆ

¥»©«³Ì«á¥Ñ wiemanson ©ó 2010-7-22 17:40 ½s¿è

¦U¦ì«e½ú¦n¡I
§Ú¼g¤F¤@­Óµ{¦¡¡AµM«á¬¡­¶Ã¯ªº¸ê®Æ«h¬O§Ú¦Û¤v¥ý¶Ã¿é¤J®³¨Ó´ú¸Õµ{¦¡¬O§_¶¶§Q¥Îªº¡A´N¦b§Ú²×©ó¦¨¥\¶¶§Q°õ¦æ«á¡A¶×¤J¥¿¦¡­nºâªº¸ê®Æ¶i¥h¬¡­¶Ã¯¡A©~µM´NµLªk°õ¦æ¤F¡I
¤£ª¾¹D¬O¥X¤F¤°»ò°ÝÃD¡A«á¨Ó§Ú´N¦b¥Î§Ú­ì¥»´ú¸Õªº¬¡­¶Ã¯¸ê®Æ¦b¥h°õ¦æ¡Aµ²ªG¤S¥i¥H°õ¦æ¡AµM«á§Ú´N¤@ª½¸Õ¨ì©³¬O­þ¸Ì¥X¤F°ÝÃD¡Aµ²ªGµo²{¥u­n§Ú§R°£¨º´ú¸Õ¥Îªº¬¡­¶Ã¯¸ê®Æ¡A´N·|¶]¥X¨S¦³³]©wª«¥óÅܼƩÎWITH°Ï¶ôÅܼƪº¿ù»~µøµ¡¡I

§Úªºµ{¦¡¬O¼g¦bTHISBOOK¸Ì­±¡Aµ{¦¡½X¦p¤U©Ò¥Ü
Sub s1()
Worksheets("Sheet1").Select
  x = 1
   Do
      If Cells(x, 1) = "" Then Exit Do
        ElseIf Cells(x, 1) = Cells.Find(What:="ªL", After:=ActiveCell) And Cells(x, 3) = Cells.Find(What:="4", After:=ActiveCell) And Cells(x, 4) = "´¶³q" And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 23 * Cells(x, 5)
        ElseIf Cells(x, 1) = Cells.Find(What:="ªL", After:=ActiveCell) And Cells(x, 4) = "¦n" And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 20 * Cells(x, 5)
        ElseIf Cells(x, 1) = Cells.Find(What:="ªL", After:=ActiveCell) And Cells(x, 4) = "¤£¦n" And Cells(x, 5) <= 20 And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 300
        ElseIf Cells(x, 1) = Cells.Find(What:="ªL", After:=ActiveCell) And Cells(x, 6) = "§_" And Cells(x, 4) = "¨ä¥¦" Then
        Cells(x, 7) = "¥t¥~ºâ"
        
        
        ElseIf Cells(x, 1) = Cells.Find(What:="¤O", After:=ActiveCell) And Cells(x, 4) = "¦n" And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 10 * Cells(x, 5)
        ElseIf Cells(x, 1) = Cells.Find(What:="¤O", After:=ActiveCell) And Cells(x, 4) = "¤£¦n" And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 2 * Cells(x, 5)
        ElseIf Cells(x, 1) = Cells.Find(What:="¤O", After:=ActiveCell) And Cells(x, 4) = "´¶³q" And Cells(x, 5) <= 20 And Cells(x, 6) = "§_" Then
         Cells(x, 7) = 300
        ElseIf Cells(x, 1) = Cells.Find(What:="¤O", After:=ActiveCell) And Cells(x, 6) = "§_" And Cells(x, 4) = "¨ä¥¦" Then
        Cells(x, 7) = "¥t¥~ºâ"
        
        
        End If
         
         
         
    x = x + 1
    Loop
                  
     
End Sub

§Ú¤]ª¦¤åª¦¤F«Ü¤[¡A¸Õ¹L¤F§âµ{¦¡½X¼g¦b¼Ò²Õ¸Ì­±¡Aµ²ªG¤]¤£¦æ¡I
½Ð°Ý§Ú­n«ç»ò¸Ñ¨M³o°ÝÃD©O¡I¡H
½Ð¦U¦ì«e½ú«ü¾É°g¬z¡I
ÁÂÁ¡I

¦^´_ 2# kimbal


  ¦ý¬O§Ú¥¿¦¡ªº¬¡­¶Ã¯¸ê®Æ¤¤¡A³£¦³§Ú¦bµ{¦¡¸Ì­±©Ò­n¤ñ¹ïªº¦r¤¸¡I¡I

§Úªº¸ê®Æªí¥D­n¬O§e²{³o¼Ë¡A¦X­p´N¬O§Ú©Ò¼gªºµ{¦¡©Ò­n­pºâ¥X¨Óªº¡I

«È¤á¦WºÙ¢x­«¶q¤½¤ç¢x¦X­p
¤@¤@¤@¤@¤@¤@¤@¤@¤@¤@¤@¤@¤@¤@
    ¤O        ¢x20        ¢x
    ¤O        ¢x53.8     ¢x
    ¤O        ¢x14        ¢x
    ªL        ¢x21        ¢x
    ªL        ¢x13        ¢x
   ¤O         ¢x10        ¢x

TOP

¦^´_ 4# kimbal


    ¥ýÁÂÁ«e½ú¼ö¤ß«ü¾É¡A§Úª½±µ§âÀÉ®×¥á¤W¨Ó¦n¤F¡I

Book1.rar (9.1 KB)

TOP

¥i¥H¤F¡IÁÂÁ«e½ú¸Ñµª¡I
¯uªº¶W¶}¤ßªº¡I

TOP

        ÀR«ä¦Û¦b : §g¤l¬°¥Ø¼Ð¡A¤p¤H¬°¥Øªº¡C
ªð¦^¦Cªí ¤W¤@¥DÃD