4. VBA macro comments

 Full version download link:  https://download.csdn.net/download/xijinno1/87716168

Comments are used to record program logic and user information, other programmers in the future can read and understand the same code to work seamlessly.

It includes information by the developer, modder and can also include merge logic. The interpreter ignores comments during execution.

Comments in VBA are expressed in two ways and they are as follows −

  • Any statement beginning with a single quote (') is considered a comment. The following is an example of annotations.

' This Script is invoked after successful login

' Written by : Yiibai Yiibai

' Return Value : True / False

  • Any statement beginning with the keyword "REM". The following is an example of annotations.

REM This Script is written to Validate the Entered Input

REM Modified by  : Yiibai Yiibai /user2

Guess you like

Origin blog.csdn.net/xijinno1/article/details/130278723