A method (i.e.
Sub) cannot have a value assigned to it. Attempting to do so will result in a run-time error.
Values are passed to methods through arguments, not through assignment. You may also have accidentally entered the name of a method when you meant to enter the name of a variable or property, so verify your statement matches your intent.