Text1 = Left(Text1, Len(Text1) - 2) & "."
变量 Text1 的值去掉它右边的两个字符,并加上"."
比如
Text1 = "abc王李刘麻子"
'现在 Text1 的值是"abc王李刘麻子"
Text1 = Left(Text1, Len(Text1) - 2) & "."
'现在 Text1 的值是 "abc王李刘."
If Text1 = "-." Then Text1 = "0."
如果 Text1 的值是"-." 那么把 Text1 的值改为"0."
如果 Text1 的值不是"-." ,本句无意义,Text1 值无变化。
Text1 = Left(Text1, Len(Text1) - 2) & "."
如果text1大于2个字符,则将最后两字符改为"."
If Text1 = "-." Then Text1 = "0."
如果出现"-."的情况,就将结果改为"0."的形式