- ©«¤l
- 703
- ¥DÃD
- 276
- ºëµØ
- 0
- ¿n¤À
- 1005
- ÂI¦W
- 1
- §@·~¨t²Î
- Windows 10
- ³nÅ骩¥»
- Office 2019
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-6-30
- ³Ì«áµn¿ý
- 2024-5-29
|
[µo°Ý] ¥Ñ©óMsgBox¤º®e¹Lªø·|Åã¥Ü²§±`¡A½Ð°Ý¦p¦ó±Nµ{¦¡§ï¼g¦¨UserFormªºTextBox?
¥»©«³Ì«á¥Ñ av8d ©ó 2012-6-24 19:29 ½s¿è
¥Ñ©óMsgBox¤º®e¹Lªø·|Åã¥Ü²§±`¡AÅ¥»¡TextBox¬J¥i¥H©µ¦ù¤S¥i¥H½Æ»s¶K¡A½Ð°Ý¦p¦ó±Nµ{¦¡§ï¼g¦¨UserFormªºTextBoxµøµ¡?- Sub Music()
- Dim J1%, S1$, S2$
- With ¤u§@ªí2.WindowsMediaPlayer1 '¥[¤JMediaPlayer¼½©ñµ¼Ö
- .URL = "D:\¼Æ¦Ïºq.mp3" '½ÐקﵼÖÀÉ®×
- .Visible = False
- .Controls.stop
- End With
- For J1 = 4 To Sheets("Data").[A65536].End(xlUp).Row
- If Range("A" & J1) <> "" And IsDate(Range("A" & J1)) Then
- ''''''''''''''''''''''''''''''''''''''''''''''''
- A1 = DateDiff("D", Date, Range("A" & J1))
- If A1 >= 0 And A1 <= 15 Then S1 = "¥i©ó¡i" & (-1) * (A1) & "¤Ñ¡j«áú¶O" & "¡Aú¶Oª÷ÃB¬°¡i" & Sheets("Data").Range("C" & J1) & "¤¸¡j"
- If A1 <= 10 Then S1 = "¥i©ó¡i" & (-1) * (A1) & "¤Ñ¡j«áú¶O" & "¡Aú¶Oª÷ÃB¬°¡i" & Sheets("Data").Range("C" & J1) & "¤¸¡j"
- If A1 <= 5 Then S1 = "¥i©ó¡i" & (-1) * (A1) & "¤Ñ¡j«áú¶O" & "¡Aú¶Oª÷ÃB¬°¡i" & Sheets("Data").Range("C" & J1) & "¤¸¡j"
- 'If A1 < 0 Then S1 = "¤w¹L´Á" & (-1) * (A1) & "¤Ñ"
- If S1 <> "" Then S2 = S2 & "±z¦³¤@µ§©ó¡i" & Sheets("Data").Range("A" & J1) & "¡j®ø¶Oªº¡i" & Sheets("Data").Range("D" & J1) & "¡j¶O¥Î¡A" & S1 & vbNewLine & vbNewLine
- S1 = "": A1 = 0
- '''''''''''''''''''''''''''''''''''''''''''
- End If
- Next
- If S2 <> "" Then
- With ¤u§@ªí2.WindowsMediaPlayer1 '¥[¤JMediaPlayer¼½©ñµ¼Ö
- .URL = "D:\¼Æ¦Ïºq.mp3" '½ÐקﵼÖÀÉ®×
- .Visible = False
- .Controls.Play '¼½©ñµ¼Ö
- ''''''''''''''''''''''''''''''''''''
- MsgBox S2
- .Controls.stop 'Ãö³¬µ¼Ö
- '''''''''''''''''''''''''''''''''
- End With
- End If
- End Sub
½Æ»s¥N½X |
|