Dear all,
I have written the following code:
However, it does not run. If try to insert a module and press F5, the Macro box appears. And I am unable to press Run. Maybe I am missing something, and I would love to know what exactly!!
Thank you
I have written the following code:
Code:
Workbook_SheetCalculate(ByVal Sh As Worksheet)
Dim myRange As Range
Dim product As Double
Dim n As Long
Set myRange = Sh.Range("N1:N50,AA1:AA50,AN1:AN50,BA1:BA50,BN1:BN50,CA1:CA50")
Productroduct = Sh.Range("A1").Value * Sh.Range("A2").Value
For n = 1 To myRange.Count
If myRange(n) > Product Then
MsgBox "Ticker: " & Sh.Name & ". Today's abnormal volume in the " & myRange(n).Offset(, -3).Value & " serie is " & myRange(n) & " contracts."
myRange(n).ColorIndex = 6
Sh.Select
End If
Next n
End Sub
However, it does not run. If try to insert a module and press F5, the Macro box appears. And I am unable to press Run. Maybe I am missing something, and I would love to know what exactly!!
Thank you