Refer to Excel workbook by path, based on cell value data

前端 未结 3 1616
旧巷少年郎
旧巷少年郎 2021-01-06 02:15

I have an Excel sheet that draws data from other, closed Excel workbooks. Currently it works fine when I list out the closed workbook\'s entire path, but I\'d like to use a

3条回答
  •  遥遥无期
    2021-01-06 03:01

    From Frank Kabel's 2004 post at Dicks Blog you could

    1. Use Laurent Longre has developed the free add-in MOREFUNC.XLL which includes the function INDIRECT.EXT
    2. Use SQL.REQUEST as described here *does not appear to be supported anymore and I am not clear if this could handle your INDEX\MATCH request
    3. Use Harlan Grove’s PULL function

    In addition you could:

    1. Create a "dirty link" directly via code that enters a formula referring to the workbook you need
    2. For pulling values - but not for working with ranges - you could use Walkenbach's ExecuteExcel4Macro XLM method

提交回复
热议问题