The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

'<keyword>' is valid only within an instance method 

The Me, MyClass, and MyBase keywords refer to specific class instances. You cannot use them inside a shared Function or Sub procedure.

Error ID: BC30043

To correct this error

  • Remove the keyword from the procedure, or remove the Shared keyword from the procedure declaration.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft