Related:
- Worksheet calculate event
- Transfer data from one excel worksheet to another automatically - Guide
- Diskpart has encountered an error: the media is write protected. see the system event log for more information. ✓ - Pen Drive, USB & SD Card Forum
- Fortnite christmas event - Guide
- How to calculate position in excel - Office Software Forum
- How to calculate 90 days from date in excel - Guide
2 responses
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Jan 7, 2010 at 08:33 PM
Jan 7, 2010 at 08:33 PM
In the absence of the data it is difficult to say. however try this modified event code and confirm whether you succeed .
Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'If Target.Address = "$I2:$J60" Then If Target.Column <> Range("I1").Column And Target.Column <> Range("J1").Column Then Exit Sub ElseIf Target.Row = 1 Or Target.Row > 160 Then Exit Sub Else Application.Run "CalRiskScore" End If End Sub
THanks for the reply venkat926, however the SelectChange event code did not work. There were no errors. The sub did not automate the running of the macro.
The data "entered" into Columns I and J are text choices [verylow,low,medium,high,veryhigh]. The macro that I want to call from the event sub is in a standard module. The macro runs through a 5X5 matrix comparing results entered , assigning each I and each J qualitative combination a decimal value, multiplies them together and places the resulting percentage into column K.
Perhaps I need to use the Calculate private sub event for this to work?
The data "entered" into Columns I and J are text choices [verylow,low,medium,high,veryhigh]. The macro that I want to call from the event sub is in a standard module. The macro runs through a 5X5 matrix comparing results entered , assigning each I and each J qualitative combination a decimal value, multiplies them together and places the resulting percentage into column K.
Perhaps I need to use the Calculate private sub event for this to work?