vbscript 在范围之后使用字符串查找单元格

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vbscript 在范围之后使用字符串查找单元格相关的知识,希望对你有一定的参考价值。

'*******************************************************************************************************************************
'FindCellWithString
' Given a column,  a String to search for, and an anchor point, returns the first Range where that string is held after the anchor
Public Function FindRangeWithString(sSearchTerm As String, sAfterRange As String, wsSheet As Worksheet) As Range
    On Error GoTo 0
    Set FindRangeWithString = wsSheet.Cells.Find(What:=sSearchTerm, After:=wsSheet.Range(sAfterRange), SearchDirection:=xlNext)
End Function

以上是关于vbscript 在范围之后使用字符串查找单元格的主要内容,如果未能解决你的问题,请参考以下文章

如何使用 VBSCript 在 Excel 中查找合并单元格的开始行和结束行?

vbscript 计算范围内不是空单元格

从Range VBA查找最后一个单元格

查找范围内的所有值,并在下一个单元格中设置另一个cell.value

如何查找范围是不是包含VBA中的合并单元格

vbscript [向我显示工作表]单击导航工作表中的单元格,然后跳转到目标工作表并在导航工作表之后移动此工作表