Excel VBA - 在合并的单元格上查找

时间:2017-11-09 11:11:16

标签: excel vba excel-vba find

我无法在合并的单元格上使用VBA查找功能。如果我取消合并该单元格,它会正确找到该单元格。这有什么解决方案吗?

Private Sub FindTry()
    Dim oFind As Range

    With Sheet2
        Set oFind = .Cells.Find("/", , xlValues, xlPart)

        If oFind Is Nothing Then
            MsgBox "/ NOT found"
        Else
            MsgBox "/ found"
        End If
    End With
End Sub

这是指向文件download link

的链接

0 个答案:

没有答案
相关问题