View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
keepITcool keepITcool is offline
external usenet poster
 
Posts: 2,253
Default How disabling sounds when calling a shell program?

Michel, why the assembler?

Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long,
ByVal dwDuration As Long) As Long

'Note beep parameters ignored in win95.
Sub Test()
beep 200, 500
End Sub

suc6!

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


(Michel) wrote:

Is there a way to stop the sound made through the soundcard when one
uses a Shell or Call in Excel?

I only want to hear a sound on the PC's internal speaker which I had
to make a assembler (fasm) *.com program for. It works perfect under
DOS without sounding the external speakers through win98, but now
Excel is making a sound!

call shell("c:\dos\inPCplay.com 1000 20",0)

witch calls: