View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mike Mike is offline
external usenet poster
 
Posts: 3,101
Default Finding and Hyperlinking to a file

I want to search all subfolders in a given directory to see if there exists
an excel wb whose name begins with the contents of a specified cell. If it
does, then I would like to hyperlink the specified cell to that file... else
nothing

i.e.
StoreNum = Range("A1") <--- Criteria
??????????????????????????
ActiveSheet.Hyperlinks.Add Anchor:=Range("A1"), Address:= _
"S:\Special Orders\...\" & StoreNum & "*.xls"

I hope that makes sense to someone.