- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¦^´_ 25# t8899
§Aªºsz(i, 1) §Ú¬Ý¨ìªºÈ¬O : ¿ù»~ 2023
³o¦b VB ¨Ó¬Ý¬O¤@Ó ¦r¦ê,
¥¦¤£Åý¥Î Val() ¨ÓÂà´«¦¨¼Æ¦r,(©Ò¥H·|¥X²{ 13 ªº¿ù»~)
§Ú«Øij¥Î CLng( ¨Ó¨ú¥N Val(
¥þ³¡¥N´«§Y¥i. (·íµM«e´£¬OÃþ¦ü¤Wz¦r¦êªº¤º®e, §A¤´µM§Æ±æ¸g¹L¸Ó Sub ¦Ó¤£¬O°µ¨Ò¥~³B²z)- Sub Àˬd()
- Dim n, sz1, str As String
- sz1 = Sheets("Sheet1").Range("F2:F54")
- str = ""
- For i = 1 To UBound(sz1)
- If CLng(sz(1, 1)) = 0 Then
- If CLng(sz1(i, 1)) <> 0# Then str = str & vbCrLf & "³æ¤¸®æ F" & i + 1 & " =========" & " B" & i + 1 & "=" & Sheets("Sheet1").Cells(i + 1, 2).Value
- Else
- n = Round((CLng(sz1(i, 1)) - CLng(sz(i, 1))) / CLng(sz(i, 1)) * 100, 2)
- If Abs(n) >= 1 Then str = str & vbCrLf & Sheets("Sheet1").Cells(i + 1, 2).Value & "===>" & n
- End If
- Next i
- If Len(str) > 0 Then
- sz = Sheets("Sheet1").Range("F2:F54")
- ' MsgBox str, , "´£¥Ü"
- CreateObject("Wscript.shell").Popup "" & str, 3, "Auto Closed MsgBox", 64
- End If
- End Sub
½Æ»s¥N½X |
|