VBA Notification pop up

harryax7

New Member
Joined
Jul 4, 2022
Messages
8
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
hello, how i add sound notification in my code please help me
VBA Code:
Private Sub Workbook_Open()
Dim r As Range

For Each r In Range("F4:F10")
    If r.Value = Date Then
    
MsgBox ("Hallo Admin "), vbInformation

End If
Next r
End Sub
 
i mean speak our language, not default english
You might need to experiment a little. This is what I just tried ...

My language setting is English. I had only one voice on my computer (Post #9). If I tried Application.Speech.Speak with a French phrase (say), the voice would mangle the pronunciation.

Via my Windows Language Settings, I installed French. I now have two voices, an English and a French. The English voice mangles the French pronunciation. The French voice pronounces the text correctly.
 
Upvote 0

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
You might need to experiment a little. This is what I just tried ...

My language setting is English. I had only one voice on my computer (Post #9). If I tried Application.Speech.Speak with a French phrase (say), the voice would mangle the pronunciation.

Via my Windows Language Settings, I installed French. I now have two voices, an English and a French. The English voice mangles the French pronunciation. The French voice pronounces the text correctly.
oke dude i'll try later, but now when i run the VBA always show notife eror, i already ceklis in the trust center
1657178770570.png
 
Upvote 0

Forum statistics

Threads
1,225,765
Messages
6,186,902
Members
453,384
Latest member
BigShanny

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top