Hello. It is necessary to write a macro on VBA for checking values, but, alas, I don’t understand the essence of this language at all. I write a lot on Python, Javascript and some Java and C ++. I have seen a lot of situations, but the errors of the BWA simply put into a stupor ... :) Actually the code
Private Sub Worksheet_Change(ByVal Target As Range) BasicRequirements (ActiveCell) End Sub Sub BasicRequirements(currentCell) If Cells(currentCell.row, currentCell.Column - 1).Value = "Александр" Then Debug.Print "Yes" Else Debug.Print "No" End If End Sub When performing, I get an error with the requirement of some object ... What? Where should he be?