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

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

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

9条回答
  •  無奈伤痛
    2020-12-02 04:39

    Or just click View, ToolBars, Edit. Then you can select a block of code and then click the Comment or Uncomment toolbar button to do everything in one click.

    As an aside, you can Tab/Shift+Tab a block of selected text also. When I was a noobie, I didn't know that for a long time and would do them one line at a time.

    Good Luck!

提交回复
热议问题