Expand Minimize

Comment Block and Uncomment Block Commands

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Adds and removes the comment character, an apostrophe, for each line of a selected block of text. If you do not have text selected and you choose the Comment Block or Uncomment Block command, the comment character is added or removed in the line where the pointer is located.

Comment Block

Adds the comment character to each line of a selected block of text.

Toolbar button: tbr_comt_ZA01201691.

Uncomment Block

Removes the comment character from each line of a selected block of text.

Toolbar button: tbr_uncm_ZA01201761.

Show:
© 2014 Microsoft