BYUIStudent
New Member
- Joined
- Jun 25, 2015
- Messages
- 10
Hello all. First off thank you so much for all your help. Mr. Excel and your forums has helped me out so much. I am still in the very beginnings of understanding VBA so please forgive my ignorance on certain topics.
This is what I am trying to do.
I am trying to set a cell to =Vlookup($C20,Dynamic table aray,2)
The table array will always be different
This is what i am trying to use
Function VLookUP()
Dim StockTableRange As Range
Sheets("Stock Names").Select
Range("Home").Offset(1, -1).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Set StockTableRange = Selection
Sheets("Raw Data").Select
Range("RawDate").Offset(1, 1).Select
activecell = "=vlookup($c20,StockTableRange,2)"
End Function
Thank you for your time and your efforts
BYUIstudent.
This is what I am trying to do.
I am trying to set a cell to =Vlookup($C20,Dynamic table aray,2)
The table array will always be different
This is what i am trying to use
Function VLookUP()
Dim StockTableRange As Range
Sheets("Stock Names").Select
Range("Home").Offset(1, -1).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
Set StockTableRange = Selection
Sheets("Raw Data").Select
Range("RawDate").Offset(1, 1).Select
activecell = "=vlookup($c20,StockTableRange,2)"
End Function
Thank you for your time and your efforts
BYUIstudent.