Hey, I've got a little problem with always missing important mails. Tried the Ablebits plugin but it's not quite what I'm looking for.
Is it possible to do the following with a macro:
1. Open a small alert window in the middle of the screen, preferably one that always stays in the foreground no matter where you click unless you close it.
2. Sound a system alert (specified wav file) on repeat every X seconds/minutes until Alert Window is closed
The following code successfully sounds an alarm for me, but not sure how to do the rest.
Is it possible to do the following with a macro:
1. Open a small alert window in the middle of the screen, preferably one that always stays in the foreground no matter where you click unless you close it.
2. Sound a system alert (specified wav file) on repeat every X seconds/minutes until Alert Window is closed
The following code successfully sounds an alarm for me, but not sure how to do the rest.
Code:
#If VBA7 Then ' 64-bit MS Office
Private Declare PtrSafe Function sndPlaySound32bit Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As LongPtr) As LongPtr
#Else ' 32-bit MS Office
Private Declare Function sndPlaySound32bit Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As LongPtr) As LongPtr
#End If
Public Sub PlaySound()
sndPlaySound32bit "C:\Windows\Media\Alarm01.wav", &H1
End Sub