You can edit standard modules, class modules, and forms in the VBA IDE. Standard and class modules are edited in a Code window. Forms are edited in the UserForm window using a special toolbox.
You can open as many Code windows as you have modules, so you can easily view the code in different forms or modules, and copy and paste between them.
To edit a component in your project
To access the code associated with a form