Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a piece of Excel code as follows
Public Function Refer(ByVal SheetName, ByVal CellName) As Variant Dim cellref As String cellref = "'" & SheetName & "'!" & CellName Refer = Indirect(cellref) End Function When I compile this VBA project, I get a 'function not defined' error on the Indirect function. Any ideas? I have ensured all VBA libraries are referenced. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Turn off "CALCULATE" on bottom of Excel worksheet. near "Ready" | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Excel "Worksheet Name" Building Function for Summary Sheet | Excel Discussion (Misc queries) | |||
VBA does not recognize Excel worksheet function "indirect" | Excel Programming | |||
Excel VBA, won't recognize "Word.Application" object | Excel Programming |