Copy Visual Basic code examples from Help to the Code window
- Select the example code you want to copy from the Help topic, and then right-click it.
- On the shortcut menu, click Copy.
- Switch to the Visual Basic Editor.
- Paste the example into the Code window of your module.