worksheet_calculate not working

R

Ricky Nu

I can't get a simple routine which should bring up a
message box every time the worksheet is calculated:

Private Sub Worksheet_Calculate()
MsgBox "OK"
End Sub

I am able to get this working (triggered every time the
worksheet is changed)

Private Sub Worksheet_Change(ByVal Target As Range)
MsgBox "OK"
End Sub

Any ideas why the calculate routine is not working?
 
J

Jill

Ricky,

2 things come to my cloudy mind:
First: Are you sure the Calculate event is being
triggered? Check the Options.
Second: Maybe Worksheet_Change using an If statement is
not a bad idea.
 
J

J.E. McGimpsey

Does it fire when you manually force recalculation (i.e., F9)?

Is it in the correct Worksheet code module?

Is Calculation set to Manual in Tools/Options/Calculation?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top