How to a Add Comment in a VBA Code | 3 Simple Ways

How to a Add Comment in a VBA Code | 3 Simple Ways

my-portfolio

In this video, we will see how we can add a comment in a VBA code. Apart from writing code, it’s important to add comments to describe what that cod

Săn Hàng 1K Trên Sendo ngay hôm nay quá nhiều sản phẩm hấp dẫn
How to fix "System cannot find the path specified" error?
LÀM MÓN ĂN VẶT GIẢM CÂN | Chuyện làm đẹp | Giang Ơi



In this video, we will see how we can add a comment in a VBA code. Apart from writing code, it’s important to add comments to describe what that code does.

The First way to add a comment is to simply type an APOSTROPHE (‘) before the comment line.

Apart from this, there is a button called “Comment Block” which you can use. You just need to select the line of the codetext to convert it into a comment. This button simply adds an APOSTROPHE (‘) which otherwise you need to type.

Just like the comment button, there’s also a UN-COMMENT button to which you can use to remove the APOSTROPHE (‘) from the comment.

The third method is not quite popular but still worth to learn. In this method, you simply need to add the keyword REM before the comment line.

Want to Learn VBA? Check out this STEP by STEP Guide:

#VBA #VBATips

Nguồn: https://hdwallpaperslovely.com

Xem thêm bài viết khác: https://hdwallpaperslovely.com/cong-nghe/

COMMENTS

WORDPRESS: 3
  • comment-avatar

    Helpful information, I like that you cover multiple methods to achieve the desired outcome

  • comment-avatar

    I love learning with you

  • comment-avatar
  • DISQUS: 0