Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Worksheet Codenames Passing to Function
Hi All
I wish to pass a worksheet codename to function. How do I do this? So far......this fails to pass the codename shAIF to the function Sub Test MsgBox FindReport(shAIF, "New Report") End Sub Function FindReport(searchSh as Worksheet, searchText as String) as Long FindReport = 0 Dim c With xSh Set c = .Cells.Find(xFind, LookIn:=xlValues) If Not c Is Nothing Then FindReport = c.address.Row End If End With End Function -- Regards, Nigel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Passing variable to worksheet function | Excel Programming | |||
Passing a WorkSheet from a Function??? | Excel Worksheet Functions | |||
Excel Worksheet Codenames | Excel Programming | |||
Excel Worksheet Codenames 2 | Excel Programming | |||
Using worksheet codenames | Excel Programming |