Hi, i am new to VB , i want to create a module, for that i am going to project (Add) properties and adding a new Module. But when i am writing code to create module that's showing error. I am writing Code: Module Module2 End Module2 and the name of the Module file is Module2. Code: .... End Module2 is shown in red..and program is not running. error shown is" Compiler error: Invalid outside procedure" .So, what's the reason?