Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Need a click, beep, or a burp

Not from the speakers but something from inside the PC. I need a sound
when a macro has completed. I am not even sure this can be done but I
am hoping.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Need a click, beep, or a burp

the code
Beep
Makes a Beep sound

Sub Button1_Click()
Dim I As Integer
For I = 1 To 3 ' Loop 3 times.
Cells(I, I) = I
Next I
Beep 'beeps
End Sub
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Need a click, beep, or a burp

On Feb 27, 5:11 pm, CurlyDave wrote:
the code
Beep
Makes a Beep sound

Sub Button1_Click()
Dim I As Integer
For I = 1 To 3 ' Loop 3 times.
Cells(I, I) = I
Next I
Beep 'beeps
End Sub


No sound and I get a stack error. When I use Beep all by itself, it
works fine. Thanks. Any Tron sound effects?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 206
Default Need a click, beep, or a burp


........ No sound and I get a stack error. When I use Beep all by
itself, it
works fine. Thanks. Any Tron sound effects?.........

The code should work....

Check this out on playing sounds using VBA and getting the sound from
a file folder on your computer.
http://exceltip.com/st/Playing_WAV-f...Excel/460.html

Another way would be to insert a sound object onto the worksheet, then
this code would work

Worksheets("Sheet1").OLEObjects(1).Verb
This way has it's drawbacks though, one of them being, it increases
the size of the workbook

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
BEEP ziad Excel Discussion (Misc queries) 5 December 28th 07 03:56 PM
No Beep Certior Excel Programming 2 October 24th 05 05:01 PM
Is BEEP all there is?? Gary's Student Excel Programming 5 May 4th 05 07:42 PM
I want to *beep* *beep*!!!! Jake Marx[_3_] Excel Programming 1 February 22nd 04 01:00 PM
I want to *beep* *beep*!!!! KJTFS[_105_] Excel Programming 0 February 20th 04 02:59 PM


All times are GMT +1. The time now is 02:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"