公式注释是包含在某一公式中的注释,用以解释其设计和操作。注释不打印出来,并且不影响公式;它们只出现在公式编辑器中。使用注释解释公式的目的或解释编写公式所涉及的步骤。
注释在 Visual Basic 中同样有效。注释以 Rem 或撇号开始。
注意 以 Rem 开始的注释是单独的语句,必须另起一行或用冒号与前面的语句分开。
Rem This is a comment Rem This is another comment formula = 10 'So is any text after an apostrophe formula = 20 : Rem This is also a comment 'Comments can occur after the formula text