1
多个字符串我使用查找细胞
Set Fcell = tmpSheet.Range("A2:A" & lastrow).Find(What:="To find Value")
现在我想搜索无论是“寻价”,或在同一小区“要找到这个词”。 如何做到这一点?
多个字符串我使用查找细胞
Set Fcell = tmpSheet.Range("A2:A" & lastrow).Find(What:="To find Value")
现在我想搜索无论是“寻价”,或在同一小区“要找到这个词”。 如何做到这一点?
试试这个:
Set Fcell = tmpSheet.Range("A2:A" & lastrow).Find(What:="To find Value")
If Fcell Is Nothing Then
Set Fcell = tmpSheet.Range("A2:A" & lastrow).Find(What:="To find word")
End If
If Not Fcell Is Nothing Then
' found, set the value
Else
' not found :(
End If
如果你发现在这“寻价”为什么你写什么相同的(“寻价”)的电池?这个词已经在? – duDE
是的,从这条线我可以得到“找到价值”,但现在我想要“找到价值”以及“找到单词”。 意味着如果控件发现它们中的任何一个只是将该值放在fcell中。 – ksrds