Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel function in VBA
Simple question!
Does anyone have any idea why this line does not work? exchange_rate = Application.VLookup(currency_type, Workbooks("Rej Reason Code Tracker.xls").Sheets("Exchange Rates").Range("R1:R65536"), 2, False) It keeps returning an error. Thanks for your help! Peter |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel function in VBA
R1:R65536 is column R, and is one column long. The next argument is "2",
which says to return the second column.... You need to specify two columns!!! Try specifying a cell range. Example: A1:B1000 Bob Flanagan Macro Systems http://www.add-ins.com Productivity add-ins and downloadable books on VB macros for Excel "Peter" wrote in message oups.com... Simple question! Does anyone have any idea why this line does not work? exchange_rate = Application.VLookup(currency_type, Workbooks("Rej Reason Code Tracker.xls").Sheets("Exchange Rates").Range("R1:R65536"), 2, False) It keeps returning an error. Thanks for your help! Peter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Adding a custom function to the default excel function list | Excel Programming | |||
When I Import an Access Table With an Excel Function in a Cell it Displays as Text not as a Function in Excel | Excel Programming |