Comments in the text of the macro begin with an apostrophe on each line of the program, but is it possible to comment out a whole block at once? For example, as in other languages ​​- /* - the beginning of the block, */ -end of the block?

PS I found the answer that

in the VBA editor in the Edit panel there are buttons Comment Block, Uncomment Block

but I don’t find anything like it:

enter image description here

  • one
    View-> ToolBars-> Edit, somewhere there it’s necessary to enable these buttons. - PinkTux
  • @PinkTux, yes, exactly, it was there that I found. Thank you Maybe make out as an answer? - Ksenia
  • Oh, while writing the answer, already answered))) @PinkTux Copy my ready answer, and I will delete mine after that - Alexandr Blinov
  • Oh well, let it be so :) - PinkTux
  • Anyway, thank you all :) - Ksenia

1 answer 1

View -> Toolbars -> Customise

Commands tab -> Edit menu

Two icons - Comment Block and Uncomment Block .

Drag from to the Edit menu toolbar.

Profit.