LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
GoBobbyGo
 
Posts: n/a
Default some kind of meta-way to refer to sheet and file names in Excel?

Is there a way to refer to use a variable as the sheet or file name in an
excel formula?

For example, let's say that in columns A and B, I've got the names of a set
of workbooks and sheets that I want to refer to...

Column A Column B
Book1 Sheet1
Book1 Sheet2
Book1 Sheet3
Book2 Sheet1
Book2 Sheet2
Book2 Sheet3
Book3 Sheet1
Book3 Sheet2
Book3 Sheet3

And let's say I want to know what's in cell A1 in each of those sheets...
So in cell C1, I've got
=[Book1.xls]Sheet1!$A$1

Is there anything I can do short of writing a macro (which is what I'm doing
now) to just get Excel to copy a similar formula into all the rows, where
it's interpreted as
=[{workbook name in column A}]{Sheet name in column B}!$A$1
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto file path update when excel sheet moved to another directory. GNSBoy Excel Discussion (Misc queries) 1 August 31st 05 07:46 PM
Updating excel sheet with selected data from another sheet in the same file gsnivas Excel Worksheet Functions 1 August 4th 05 09:55 AM
Does excel recognise names rather than cells? Sue Excel Worksheet Functions 9 May 22nd 05 04:51 AM
how to let excel ask to save the sheet when closing the excel file Malek Setting up and Configuration of Excel 1 January 4th 05 12:13 AM
Hyperlink to specific sheet in Excel Web File jd17 Links and Linking in Excel 0 December 8th 04 09:03 PM


All times are GMT +1. The time now is 03:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"