Posted By: Anonymous
In the VBA editor of Office (ALT + F11), how do you comment or uncomment a block of code?
In the VBA editor, go to
Customise... or right click on the tool bar and select
Commands tab, select the
Edit menu on the left.
Then approximately two thirds of the way down there’s two icons,
Comment Block and
Drag and drop these onto your toolbar and then you have easy access to highlight a block of code, and comment it out and uncomment with the click of a button!
See GauravSingh’s answer if you want to assign keyboard shortcuts.