繁体   English   中英

在Excel中检查seriescollection公式

[英]Check seriescollection formula in Excel

我想检查seriescollection(1).formula是否为预期的字符串或预期范围的.value,但是无论数据如何,我尝试执行的任何操作始终都会成功:

If graf.SeriesCollection(1).Formula = _ 
       Range("Podatki!$B$1:$C$97;Podatki!$K$1:$L$97") Then
            MsgBox ("1")
End If

If graf.SeriesCollection(1).Values = _ 
       Range("Podatki!$B$1:$C$97;Podatki!$K$1:$L$97") Then
            MsgBox ("2")
End If

您是否在此行(第一行)中缺少Formula语句:

graf.SeriesCollection(1).Formula = Range("Podatki!$B$1:$C$97;Podatki!$K$1:$L$97") .Formula 

对于values类似:

graf.SeriesCollection(1).Value2 = Range("Podatki!$B$1:$C$97;Podatki!$K$1:$L$97").Value2

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM