Copy Visual Basic code examples from Help to the Code window

Copy Visual Basic code examples from Help to the Code window

  1. Select the example code you want to copy from the Help topic, and then right-click it.

  2. On the shortcut menu, click Copy.

  3. Switch to the Visual Basic Editor.

  4. Paste the example into the Code window of your module.