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 easyexcelanswers@gmail.com.
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
TWEET THIS VIDEO
Follow me on twitter
easyexcelanswers
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.
code
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)
Sheet1.Activate
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
Beep
Application.Speech.Speak “membership Expired”, SpeakAsync:=True
Sheet3.Activate
With UserForm1
.Width = 250
.Height = 200
.Show
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
ende:
Sheet3.Activate
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
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
Excellent. You are an Excel Genius.