ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How does this line of code run? (https://www.excelbanter.com/excel-programming/422369-how-does-line-code-run.html)

Jay

How does this line of code run?
 
Application.Lookup(11, vrEITab)

Thanks,
Jay

Gary''s Student

How does this line of code run?
 
It runs pretty well in context:

Sub zeroo()
Dim vrEITab As Range
Set vrEITab = Range("A1:A10")
Range("A5").Value = 11
x = Application.WorksheetFunction.Lookup(11, vrEITab)
MsgBox (x)
End Sub

will display the desired 11
--
Gary''s Student - gsnu2007k


"Jay" wrote:

Application.Lookup(11, vrEITab)

Thanks,
Jay



All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com