Copy example code from Help
Sometimes you may want to copy a useful example from Visual Basic Help. While many of the examples require more code to work correctly, some examples are useful to see how a particular procedure or control flow technique behaves.
To copy example code from Help to your application
Use Help to display the topic for the language element whose example you want to use.
Choose the example link in the non-scrolling region near the top of the page. The code example is displayed.
Right-click and select the part of the code that you want to copy to your application. On the Macintosh, choose Copy from the Edit menu; a window appears in which you can select the code to copy.
Choose Copy from the shortcut menu. On the Macintosh, press the Copy button.
Move the focus back to the Code window and position the mouse pointer where you want the code example to be inserted.
Right-click again and choose Paste to insert the code example into the Code window.
Tip
You can also press CTRL+C to copy a selected example in a Help window. Press CTRL+V to paste the example into the Code window.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기