Ms Excel Problem Linking Range in Source Document to Custom Function in Target Document

Posted by user261935 on Stack Overflow See other posts from Stack Overflow or by user261935
Published on 2010-02-26T18:13:13Z Indexed on 2010/03/18 11:01 UTC
Read the original article Hit count: 200

Filed under:
|

I have some customer MS Excel VBA code (MS Excel 2007) that takes a range as input and then does some work on it (it is quite a large range). I want to use a separate excel document as the source of the range data. If I have both the source and target document open then the function works just fine. If I have only the target document open I get #Value! returned and stepping through in the debugger I see "Error 2023" in the data value passed in. Any ideas how I make this work without having to open both spreadsheets simultaneously?

© Stack Overflow or respective owner

Related posts about ms-excel

Related posts about vba