Have VBA with several projects, one project has some modules that required a user login security check and some do not. When the macros runs only time that a security check should be is done when from the menu the selection of the module determines if security check should be performed. Basically security check is determine by which company module that is selected to be processed by the macros. If a company is selected that needs security checked than a definition module is reference from another project for the check. Currently, it appears when macro is started it does a compile which errors because of the module that requires a security check or the macro is not starting in the correct place.

I hope this makes since, thanks for all help.