-
1
- #1
I work for a company where any external software (other than approved) is stictly forbidden. So, I have to forget about downloading anything for my system at work.
I am one of those people that will say "I'll call you back in 10 mins" or "I'll come come and see you in 15", etc. Then, two hours later, panic; because I got involved with other things.
So, I had to devise something on my own. This, as I said in the subject line, is not rocket sicence, but still a useful tool for me.
I have set up two very short macros in a file by itself.
Sub SetAlarm()
tmm = Application.InputBox(Prompt:="How long do you want to set the alarm for(Mins)?", Title:="Set Alarm:", Type:=1)
If tmm < 9 Then
tmm = "0" & tmm
End If
timmn = "00:" & tmm & ":00"
If tmm > 59 Then
dif = tmm - 60 * Int(tmm / 60)
If dif < 10 Then
dif = "0" & dif
End If
timmn = "0" & Int(tmm / 60) & ":" & dif & ":00"
End If
Application.OnTime Now + TimeValue(timmn), "DisplayAlarm"
End Sub
Sub DisplayAlarm()
Beep
ForceForegroundWindow FindWindowA(0, Application.Caption)
Range("G15").Comment.Visible = True
End Sub
In cell G15's comment box I have embedded a picture (Doutzen Kroes) that pops up no matter what application I am in when the alarm goes off.
Then, I just right click on the cell and select "Hide Comment". I could create a Worksheet_SelectionChange event to hide the comment by setting the Visible property to False.
Instead of Range("G15").Comment.Visible = True above, a message box can be used
MsgBox "Wake up. Its time for your break!" If message box is used, the macros can be put in a Personal.xls file.
I have the setalarm macro on a short-cut key, so it takes only few seconds to set the alarm.
PS: Never figured out why Rocket Science and Brain Surgery rank high up there. I think Excel-ers are just as good.
Member- AAAA Association Against Acronym Abusers
I am one of those people that will say "I'll call you back in 10 mins" or "I'll come come and see you in 15", etc. Then, two hours later, panic; because I got involved with other things.
So, I had to devise something on my own. This, as I said in the subject line, is not rocket sicence, but still a useful tool for me.
I have set up two very short macros in a file by itself.
Sub SetAlarm()
tmm = Application.InputBox(Prompt:="How long do you want to set the alarm for(Mins)?", Title:="Set Alarm:", Type:=1)
If tmm < 9 Then
tmm = "0" & tmm
End If
timmn = "00:" & tmm & ":00"
If tmm > 59 Then
dif = tmm - 60 * Int(tmm / 60)
If dif < 10 Then
dif = "0" & dif
End If
timmn = "0" & Int(tmm / 60) & ":" & dif & ":00"
End If
Application.OnTime Now + TimeValue(timmn), "DisplayAlarm"
End Sub
Sub DisplayAlarm()
Beep
ForceForegroundWindow FindWindowA(0, Application.Caption)
Range("G15").Comment.Visible = True
End Sub
In cell G15's comment box I have embedded a picture (Doutzen Kroes) that pops up no matter what application I am in when the alarm goes off.
Then, I just right click on the cell and select "Hide Comment". I could create a Worksheet_SelectionChange event to hide the comment by setting the Visible property to False.
Instead of Range("G15").Comment.Visible = True above, a message box can be used
MsgBox "Wake up. Its time for your break!" If message box is used, the macros can be put in a Personal.xls file.
I have the setalarm macro on a short-cut key, so it takes only few seconds to set the alarm.
PS: Never figured out why Rocket Science and Brain Surgery rank high up there. I think Excel-ers are just as good.
Member- AAAA Association Against Acronym Abusers