ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

EXCEL µo¥XÁn­µ

¸Ñ»¡±o«Ü¸Ô²Ó©O!

TOP

¥»©«³Ì«á¥Ñ StanleyVic ©ó 2012-7-19 16:29 ½s¿è

³o­Ó¨Ò¤lªº´£°Ý¤Ó¦n¤F. ¾Ç²ß¤F...
§Ú¨S·Q¹L·|¥Î¦bExcel ¥h¤¶©w ¹ï/¿ù.
¥­±`³£¥u·|¨ä¥L.. or msbox ´£¥Ü..
¤£¿ù¤£¿ù..ÁÂÁÂ..
NeverTry , NeverNo !

TOP

§Ú²×©óµo²{¿ù¦b¨º¸Ì, ­ì¨Ó¦bC:\Windows\Media\ ¨£¨ìªº¤¤¤åÀɮצWºÙ. ­ì¨Ó¬OÄF¤H
Windows ³qª¾.wav ¦WºÙ, ­ì¨Ó¯u¹êÀɮצWºÙ¥s Windows Notify.wav
­ø©Ç±o¼½­ø¨ì,  
¦hÁ¦U¦ì­@¤ß«ü±Ð

TOP

¨¯­W¤F¦U¦ìªº«ü±Ð,
¸Õ¹L¤FSub OP ¦ý©_©Ç¦b¹q¸£¤º§ä¤£¨ìtada.wav,
§ï¥Î¨ä¥¦C:\Windows\Media\¤ºªºWAVÀɤϦӼ½­ø¨ì
¦ÓSub YY  ¥h¨ìShell cmd, 6 Åã¥Ü§ä¤£¨ìÀÉ®×

¦Ó³o°ÝÃD·|¦P¹q¸£¦³Ãö¶Ü?
²{®É¹q¸£¬OWIN7 64BIT,  ­Y°õ¦æ¨ì«á, ¦b¨ä¥¦WINXP ¹q¸£¤S·|§_¥X²{°ÝÃD

³Ì²×§Æ±æ¥i¥H¼½¨ì¦bC:\Windows\Media\ ¤º«ØªºwavÀÉ

TOP

¦^´_ 12# oobird

¬ðµM·Q¨ì¡ABEEPÁÙ¥i¥H½s¦±
  1. Declare Function Beep Lib "kernel32.dll" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long

  2. Sub yy()
  3. f = Array(100, 523, 587, 659, 698, 784, 879, 987, 1030)
  4. d = Array(5, 3, 3, 0, 4, 2, 2, 0, 1, 2, 3, 4, 5, 5, 5, 0, 5, 3, 3, 0, 4, 2, 2, 0, 1, 3, 5, 5, 3, 0, 2, 2, 2, 2, 2, 3, 4, 0, 3, 3, 3, 3, 3, 4, 5, 0, 5, 3, 3, 0, 4, 2, 2, 0, 1, 3, 5, 5, 1)
  5. For i = 0 To UBound(d)
  6. Beep f(d(i)), 500
  7. Next
  8. End Sub
½Æ»s¥N½X

TOP

¤èªk¤Ó¦h¤F¡A²³æ¼g´X­Ó±`¥Îªº¡G
  1. Private Declare Function mciExecute Lib "winmm.dll" (ByVal lpstrcommand As String) As Long
  2. Private Const Mic = "C:\Windows\Media\tada.wav"
  3. Sub op()
  4. mciExecute ("play " & Mic)
  5. End Sub

  6. Sub yy()
  7. cmd = "sndrec32 /play /close ""C:\Windows\Media\tada.wav"""
  8. Shell cmd, 6
  9. End Sub
  10. Sub xx()
  11. Beep
  12. Application.Wait (Now + TimeValue("0:00:1"))
  13. Beep
  14. End Sub
  15. Sub ww()
  16. Set oSa = CreateObject("SAPI.SpVoice")
  17.         oSa.Speak "misinput"
  18. End Sub
½Æ»s¥N½X

TOP

­×§ï¤F¿ù³B, ¦ý³£¬O¨S¦³Án­µ
¤£ªÖ©w¬O§_¹q¸£°ÝÃD

¦ý½Ð°Ý­Y·Q²³æ¤@ÂI, ¤º«Ø°£¤FBEEP Án¥~
ÁÙ·|¦³¨ä¥¦Án­µ¶Ü?
©Î¦pªG­n³sÄ~BEEP ¨âÁn, À³¸Ó¦p¦ó©O?

TOP

¦^´_ 9# enoch
§A¤Ö¤F\
Function PlaySound(Msg As Boolean)
    Dim Spath As String, Cmd As String
    Spath = "C:\Windows\Media\" & IIf(Msg, "Windows ¶}­»Âb.wav", "Windows ³qª¾.wav")
    '¦s©ñ­µ®Äªº¸ô®|: "C:\Windows\Media\"
    Cmd = "C:\Program Files (x86)\Windows Media Player\wmplayer.exe " & Chr(34) & Spath & Chr(34)
    '¼½©ñ­µ®Äªºµ{¦¡: "C:\Program Files\Windows Media Player\wmplayer.exe " <-³o¸Ì­nªÅ¤@®æ
    Shell Cmd, 0
End Function

TOP

¤£¦n·N«ä, §Ú¹ê¦b¤£©ú¥Õ¿ù¦b¨º¸Ì,
¥i§_¦A¦¸«ü±Ð¶Ü?

sound.zip (9.87 KB)

TOP

¦^´_ 5# enoch
1.¦Û­q¨ç¼Æ
2.Àx¦s®æ¼g¤U¤½¦¡¦p:  =IF(A1>5,PlaySound(TRUE),PlaySound(FALSE))
  1. Option Explicit
  2. Function PlaySound(Msg As Boolean)
  3.     Dim Spath As String, Cmd As String
  4.     Spath = "C:\Windows\Media\" & IIf(Msg, "Windows XP ±Ò°Ê.wav", "Windows XP µn¥X­µ®Ä.wav")
  5.     '¦s©ñ­µ®Äªº¸ô®|: "C:\Windows\Media\"
  6.     Cmd = "C:\Program Files\Windows Media Player\wmplayer.exe " & Chr(34) & Spath & Chr(34)
  7.     '¼½©ñ­µ®Äªºµ{¦¡: "C:\Program Files\Windows Media Player\wmplayer.exe " <-³o¸Ì­nªÅ¤@®æ
  8.     Shell Cmd, 0
  9. End Function
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : «Ý¤H°h¤@¨B¡A·R¤H¼e¤@¤o¡A´N·|¬¡±o«Ü§Ö¼Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD