¥»©«³Ì«á¥Ñ 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²{¥un§Ú§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 |