J
JCC
Cell A1 content is "=B2". I want to reference A1 and get the contents of B2.
Gord Dibben said:Text in A1 '=AL6>0 exactly as I have written
AL6 contains 123
In A2 enter =EvalCell(A1)
Returns TRUE
EvalCell is a UDF which will copy to a general module in your workbook.
Function EvalCell(RefCell As String)
Application.Volatile
EvalCell = Evaluate(RefCell)
End Function
Gord Dibben MS Excel MVP
Dave Peterson said:If you're new to macros:
Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html
David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm
(General, Regular and Standard modules all describe the same thing.)