I have code that returns a variable "l" to cell H17. (lowercase L)
Range("H17").Value = l
That value is used to return a vlookup value to a cell with the
following formula.
=IF(ISERROR(VLOOKUP(H17,L2:Q75,J2,0)),"Game
?",VLOOKUP(H17,L2:Q75,J2,0))
I want that vlookup returned value to show in a message box.
This does not compile along with a few other tries.
MsgBox application.WorksheetFunction
=IF(ISERROR(VLOOKUP(H17,L2:Q75,J2,0)),""Game
?"",VLOOKUP(H17,L2:Q75,J2,0))
Thanks.
Howard
Pass the value of the cell containing the formula to MsgBox...
MsgBox Range("???").Value
--
Garry
Free usenet access at
http://www.eternal-september.org
Classic
VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.
vb.general.discussion