ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   No Beep (https://www.excelbanter.com/excel-programming/343656-no-beep.html)

Certior

No Beep
 
The first of the following two macros produces a message box and a beep.

The second macro doesn't produce a beep. I would like to produce a beep to
signify that a macro I am writing has finished running, but I don't want to
produce a message box at the same time.

Any suggestions please?

Sub sbBeep()
MsgBox "This is a test.", vbExclamation, "Test Title"
End Sub

Sub sbBeep2()
Beep
End Sub


Tom Ogilvy

No Beep
 
Look at this thread and see if you can use anything the

http://tinyurl.com/csnyy

--
Regards,
Tom Ogilvy


"Certior" wrote in message
...
The first of the following two macros produces a message box and a beep.

The second macro doesn't produce a beep. I would like to produce a beep

to
signify that a macro I am writing has finished running, but I don't want

to
produce a message box at the same time.

Any suggestions please?

Sub sbBeep()
MsgBox "This is a test.", vbExclamation, "Test Title"
End Sub

Sub sbBeep2()
Beep
End Sub




Certior

No Beep
 
Thanks - that seemed to work

I wonder why Beep didn't work? I'm sure it has done in the past

Regards

Tony Wolfe

"Tom Ogilvy" wrote:

Look at this thread and see if you can use anything the

http://tinyurl.com/csnyy

--
Regards,
Tom Ogilvy


"Certior" wrote in message
...
The first of the following two macros produces a message box and a beep.

The second macro doesn't produce a beep. I would like to produce a beep

to
signify that a macro I am writing has finished running, but I don't want

to
produce a message box at the same time.

Any suggestions please?

Sub sbBeep()
MsgBox "This is a test.", vbExclamation, "Test Title"
End Sub

Sub sbBeep2()
Beep
End Sub






All times are GMT +1. The time now is 04:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com