tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,759
- Office Version
-
- 365
- 2019
- Platform
-
- Windows
I have a table consisting of 2 columns, Date and Price.
This table is called MyTable.
For a given date, I want to perform a vlookup.
In a class I have:
How can I make this work?
Thanks
This table is called MyTable.
For a given date, I want to perform a vlookup.
Code:
Dim TableArray() As Variant
TableArray = Range("MyTable")
In a class I have:
Code:
Private mintPrice As Single
Public Property Get Price() As Single
Price = Application.Vlookup(msngPrice, TableArray ,2, False)
How can I make this work?
Thanks