vba 如果字符变量a 为“所有类型”,则a与b变量相同,否则a为A2单元格的值
Sub CompareVariables() Dim a As String Dim b As String a = "所有类型" If a = "所有类型" Then b = a MsgBox "a与b变量相同" Else a = Range("A2").Value MsgBox "a的值为:" & a End If End Sub
原文地址: https://www.cveoy.top/t/topic/xzT 著作权归作者所有。请勿转载和采集!