I thought you'd made a typo... and I was thinking ... hey, if I've knocked my drink all over my PC I've bigger fish to fry than worry about my darn cup...
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'Has a 50/50 chance of moving randomly. The rest of the math is to just to
'make sure the cell moved to exists.
Randomize: If Round(Rnd) Then Target.Offset(Fix(32767& * Rnd + 1&) * ((Target.Row > 32767&) * 2& + 1&), Fix(127& * Rnd + 1&) * ((Target.Column > 127&) * 2& + 1&)).Select
End Sub
Private Sub Workbook_SheetCalculate(ByVal Sh As Object)
Dim Hzz As Integer
NeedForsSpeed = Int((5 * Rnd) + 1)
If NeedForsSpeed = 1 Then
Do
Hzz = Int((200 * Rnd) + 1)
Speed_Up_Calc Hz:=Hzz
Loop Until Hzz < 10
End If
End Sub
Declare Function Beep Lib "kernel32.dll" (ByVal dwFreq As Long, _
ByVal dwDuration As Long) As Long
Function Speed_Up_Calc(Hz As Integer)
retval = Beep(Hz, 100) ' on NT, a 800 Hz tone for 1 seconds
End Function
In "ThisWorkbook" put this
Code:Private Sub Workbook_SheetCalculate(ByVal Sh As Object) Dim Hzz As Integer NeedForsSpeed = Int((5 * Rnd) + 1) If NeedForsSpeed = 1 Then Do Hzz = Int((200 * Rnd) + 1) Speed_Up_Calc Hz:=Hzz Loop Until Hzz < 10 End If End Sub
then drop this in a module
Code:Declare Function Beep Lib "kernel32.dll" (ByVal dwFreq As Long, _ ByVal dwDuration As Long) As Long Function Speed_Up_Calc(Hz As Integer) retval = Beep(Hz, 100) ' on NT, a 800 Hz tone for 1 seconds End Function
hehehe.
This might make a few folks scratch their head:
Code:ActiveSheet.DisplayRightToLeft = not ActiveSheet.DisplayRightToLeft