How to recalculate a worksheet when a selection is made
Hi Philip,
Your code works for me in that the selection of cell B2 triggers the
recalculation of the sheet.
However, how is this related to the use of Data Validation in cell C2?
---
Regards,
Norman
"Philip J Smith" wrote in message
...
I use data validation to allow selection from a short list.
The data validation is in cell C2.
I am trying to use the Worksheet_SelectionChange event to trigger
recalculation of the worksheet, but the code below doesn't seem to be
working.
Could someone point out the syntax error please?
Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
If Intersect(Me.Range("B2"), Target) Is Nothing Then Exit Sub
Me.Calculate
End Sub
Regards
Phil Smith
|