You can use the Beep API:
Public Declare Function Beep Lib "kernel32" Alias "Beep" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long
Marco
Quote:
quote:Originally posted by SerranoG
In the old BASIC and BASICA programming, there used to be a PLAY command that you just told it the frequency and duration and the computer's default BEEP would play the tone. Did they get rid of that VBA?
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|