You did not include the opening parenthesis "(" when you created a procedure declaration,

CopyCode imageCopy Code
Sub mysample x // x should be enclosed within parentheses.
End Sub

or used the redim statement.

CopyCode imageCopy Code
Redim x // x should be enclosed within parentheses.

To correct this error

  • Add the left (opening) parenthesis "(".

See Also