View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
BigJimmer BigJimmer is offline
external usenet poster
 
Posts: 37
Default Search worksheet from add-in

I am trying to search for specific text in a worksheet. I need to do this
from a udf that is in an add-in, and the search does not return a value (rng
= Nothing). If I copy the logic to a module in the workbook itself, it
works.

dim rng as Range
dim Wb as Workbook

Wb = ActiveWorkbook

Set rng = Wb.Worksheets("Sheet1").Columns(1).Find("mystring" )

Thanks!