Create error message with sound in Excel

Create error message with sound in Excel. Add sound to error message.
Allow me teach you the skills in Excel that you need for business

Let me teach you the VBA that I have learn in my five years of consulting

Let’s take the frustration out of user forms

Become an Affiliate and earn 25% on Course Sales

For more help visit my website or email me at

Contact me regarding customizing this template for your needs.

Click for online Excel Consulting

I am able to provide online help on your computer at a reasonable rate.

I use a Blue condenser Microphone to record my videos, here is the link

Check out Crowdcast for creating your webinars

If you need to buy Office 2019 follow

I use Tube Buddy to help promote my videos
Check them out

Follow me on Facebook


Follow me on twitter

IG @barbhendersonconsulting

You can help and generate a translation to you own language

*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I’ve used or have experience with.

Sub secretacc()
Dim barcode As String
Dim rng As Range
Dim rownumber As Long
Dim status As String
Dim Total As Double
Dim Timein As Date
Dim Timeout As Date
Dim iRow As Long
Dim ws As Worksheet
Dim name As String
Dim now As Date
Set ws = Worksheets(“Attendance”)
barcode = Sheet3.Cells(2, 1)
If barcode not equal to”” Then

For Each cell In ws.Columns(1).Cells
If Len(cell) = 0 Then cell.Select: Exit For
Next cell
Dim rng1 As Range
Set rng1 = Sheet2.Range(“A:A”).Find(barcode, , , xlWhole)
If Not rng1 Is Nothing Then
name = rng1.Offset(0, 1).Value
status = rng1.Offset(0, 2).Value
If status = “Expired” Then

Application.Speech.Speak “membership Expired”, SpeakAsync:=True
With UserForm1
.Width = 250
.Height = 200
End With
Sheet3.Cells(2, 1) = “”
GoTo ende
End If
ActiveCell.Value = barcode
ActiveCell.NumberFormat = “@”
End If

ActiveCell.Offset(0, 1) = name
ActiveCell.Offset(0, 2).Select
ActiveCell.Value = Date & ” ” & time
ActiveCell.NumberFormat = “d/m/yyyy h:mm AM/PM”
now = Date & ” ” & time
Sheet3.Cells(2, 1) = “”
GoTo ende

End If
Sheet3.Cells(2, 1).Select

End Sub

Private Sub CommandButton1_Click()
Sheet3.Cells(2, 1) = “”
Sheet3.Cells(2, 1).Select
Unload Me
End Sub

Watch more new videos about Excel Office | Synthesized by Mindovermetal English

5/5 - (1 bình chọn)

Bài viết liên quan

Theo dõi
Thông báo của
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận
Barb Henderson

Thank you for watching my video. I am not able to include <> symbols in the code in the description of the video. This symbol has been replaced with the words not equal to

Robert Redford

Excellent. You are an Excel Genius.