ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Passing variable to worksheet function (https://www.excelbanter.com/excel-programming/381534-passing-variable-worksheet-function.html)

[email protected]

Passing variable to worksheet function
 
Hi
I'm using an index(match) function in my sheet to lookup two values
from two other spreadsheets. The column reference in the Index function
needs to be obtained by a left(workbook,2), so it;s the first two
characters of the workbook name.

I have a macro that obtains this information in a variable (FName),
without dirtying the sheet i.e. using a FName = range("").value how can
I use the FName variable in the worksheet function?

Or if you have any other suggestions...

The overall aim is to cycle through about 160 workbooks, each workbook
needs to have the index function pasted through all rows.


Thanks


Wendy



All times are GMT +1. The time now is 01:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com