Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Looking to write some code that will open a workbook/worksheet and then take
a range and use it as a table for a vlookup query ... HAve entered the following Dim OFFICE As Workbook Dim Result As String Dim PERSONNELRange As Range Workbooks.Open ("c:\OFFICE.xls") Worksheets("Personnel").Select PERSONNELRange = Worksheets("Personnel").Range("C2", "D1000").Select Result = Application.WorksheetFunction.VLookup(RegNo, PERSONNELRange, 2, False) msg = MsgBox(Result, vbOKOnly) Not working at all ... can anyone assist with a step for a hint please Many Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Named range links to external workbook, help! | Charts and Charting in Excel | |||
Lookup Table Dilemma | Excel Worksheet Functions | |||
Use Sheet CodeNames to Select Sheet in Different Workbook | Excel Discussion (Misc queries) | |||
Pivot Table - max rows allowed in data range | Excel Discussion (Misc queries) | |||
Stubborn toolbars in Excel | Excel Discussion (Misc queries) |