¥»©«³Ì«á¥Ñ vpower ©ó 2011-5-15 11:55 ½s¿è
¦^´_ 11# GBKEE
§Ú¬Ý¤£¬O«ÜÀ´,§Ú¦Û¤v¦b±z¤§«e¼gªº¨ºÓ+¤F¤@¬q(¤w¥Î¬õ¦â¦rÅéÅã¥Ü),½Ð±zÀ°§Ú¬Ý¬Ý·|¤£·|¥X°ÝÃD,·PÁÂ.
-------------------------------------------------------------------------------
With Sheet1.WindowsMediaPlayer1 '¥[¤JMediaPlayer¼½©ñµ¼Ö
.URL = "D:\¼Æ¦Ïºq.MP3" '½ÐקﵼÖÀÉ®×
.Visible = False
.Controls.stop
End With
For J1 = 2 To Sheets("Sheet1").[C65536].End(xlUp).Row
If Range("C" & J1) <> "" And IsDate(Range("C" & J1)) Then
''''''''''''''''''''''''''''''''''''''''''''''''
I1 = DateDiff("D", Date, Range("C" & J1))
If I1 >= 0 And I1 <= 90 Then S1 = "¦b90¤Ñ¤º¹L´Á"
If I1 <= 60 Then S1 = "¦b60¤Ñ¤º¹L´Á"
If I1 <= 30 Then S1 = "¦b30¤Ñ¤º¹L´Á"
If I1 < 0 Then S1 = "¤w¹L´Á" & (-1) * (I1) & "¤Ñ"
If S1 <> "" Then S2 = S2 & Sheets("Sheet1").Range("A" & J1) & "-" & S1 & vbNewLine & vbNewLine
S1 = "": I1 = 0
'''''''''''''''''''''''''''''''''''''''''''
End If
Next
If S2 <> "" Then
With Sheet1.WindowsMediaPlayer1 '¥[¤JMediaPlayer¼½©ñµ¼Ö
.URL = "D:\¼Æ¦Ïºq.MP3" '½ÐקﵼÖÀÉ®×
.Visible = False
.Controls.Play
End With
End If
If S2 <> "" Then MsgBox S2 Else
-------------------------------------------------------------------------------