Hi
I successfully used the following code:
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Count = 1 Then
If Not Intersect(Target, Range("I2")) Is Nothing Then
Call AR1_KS3
End If
End If
End Sub
I have multiple macros that filter data (school grades) e.g., Key Stage 3 - Academic Review 1. My problem is that whenever I add the same code again for another macro it doesn't work and I get the error message: Compile error: Ambiguous name detected: worksheet_selectionChange.
I've now learnt you can't have two of the same and I am not skilled enough to be able to write multiple macros within the same bit of code.
How can I have multiple macros assigned to different cells please?
Huge thanks in advance
JH
I successfully used the following code:
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Selection.Count = 1 Then
If Not Intersect(Target, Range("I2")) Is Nothing Then
Call AR1_KS3
End If
End If
End Sub
I have multiple macros that filter data (school grades) e.g., Key Stage 3 - Academic Review 1. My problem is that whenever I add the same code again for another macro it doesn't work and I get the error message: Compile error: Ambiguous name detected: worksheet_selectionChange.
I've now learnt you can't have two of the same and I am not skilled enough to be able to write multiple macros within the same bit of code.
How can I have multiple macros assigned to different cells please?
Huge thanks in advance
JH