Option Private Module not permitted in object module

Option Private Module makes the contents of amodule unavailable to otherprojects, while preserving their availability to your project. This error has the following cause and solution:

  • The statement Option Private Module appears in anobject module.

    Remove the Option Private Module statement from the module. Object modules have the characteristic of Option Private Module by default. Changing the default can't be done from code. See yourhost application's documentation for information on giving object module members wider visibility.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).