- ©«¤l
- 8
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 14
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- sp3
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-12-30
- ³Ì«áµn¿ý
- 2012-1-6
|
[µo°Ý] ByVal a As Range~¦¹Ãþ»yªkªº¥Îªk¡A¤£¤Ó²M·¡
¥»©«³Ì«á¥Ñ sayloveme ©ó 2011-12-30 14:21 ½s¿è
Public Function FmdFatotal(ByVal a As Range, ByVal b As Range, ByVal c As Integer, ByVal pollutant As String) As Double
Dim IRptData As Integer
IRptData = 6
FmdSTotal = 0
Do Until Left(Trim(Sheets("¸ê®Æ").Cells(IRptData, 4).Value), 1) = "¥»"
If Sheets("¸ê®Æ").Cells(IRptData, 21) > c Then
If Trim(Sheets("¸ê®Æ").Cells(IRptData, 9).Value) = pollutant Then
FmdFatotal = FmdFatotal + Sheets("¸ê®Æ").Cells(IRptData, 20)
End If
End If
IRptData = IRptData + 1
Loop
End Function
--------------------------§Ú¬O¤À¹j½u----------------------
Ãö©ó³o¬q»yªk¡A·Q½Ð±Ðª©¤Wªº°ª¤â¡A¬O§_¯à°÷À°§Ú¸ÑÄÀ¤@¤U¡A§ä´M¤F¦U¤jºô¯¸¡AIRptData ¸òDo Until Left(Trim(Sheets("¸ê®Æ").Cells(IRptData, 4).Value), 1)¡A³o¬q»yªk¡A§¹¥þ¬Ý¤£À´~ÁٽЯ«¤H¤j¤j½ç±Ð¡A·P¿E¤£¶i~!!ÁÂÁ |
|