How to comment and uncomment blocks of code in the Office VBA Editor

后端 未结 9 805
醉酒成梦
醉酒成梦 2020-12-02 04:21

In the VBA editor of Office (ALT + F11), how do you comment or uncomment a block of code?

9条回答
  •  Happy的楠姐
    2020-12-02 04:40

    An easy way to add buttons to Comment or Un-Comment a code block is:

    • Go to View-Toolbars-Customise
    • Select the Command tab
    • Select the Edit Category on the left
    • Drag the “Comment Block” and “Uncomment Block” icons onto your toolbar.

提交回复
热议问题