Range.Find in VBA Excel

前端 未结 2 1813
天命终不由人
天命终不由人 2021-01-27 08:49

I\'m trying to perform a \"find\" in a Excel sheet with this instruction:

Set Found = Columns(2).Find(What:=value_to_find, After:=ActiveCell, LookIn:=xlFormulas,         


        
2条回答
  •  心在旅途
    2021-01-27 09:30

    [RESOLVED] Many Thanks everyone, I resolved my question with the Ralph's support.

    The variable Found (in your code) must be of type variant. So, if you explicitly set Dim Found as variant then your code should work.

提交回复
热议问题