LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Creating ranges in closed workbooks without #REF errors

I have written code to add range names in a Master file that refer to other
closed workbooks. The VBA code I use is as follows:

ThisWorkbook.Names.Add Name:="MyRangeName", _
RefersTo:="='\\Full Path\[FileName.xls]SheetName'!$A$1:$AA$100"

This was working for me last week, but now if I pull up Name Manager in
Excel 2007, all I see is #REF in the value column.

Surely I can refer to a range if it is in a closed workbook??

Does the workbook need to be open for it to work?

ps - I was using the INDIRECT function but it was killing my spreadsheet
performance because it is volatile.

Hope someone can help! I'm desperate

Conor
Microsoft
 
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
Copying From Closed Workbooks Mike Excel Worksheet Functions 3 September 6th 06 06:33 PM
Information from Closed workbooks PaulW Excel Discussion (Misc queries) 1 August 24th 06 09:20 PM
Access Closed workbooks (2003) jmack Excel Worksheet Functions 3 January 26th 06 10:14 PM
How to refenence ranges on a closed workbook GjArt Excel Discussion (Misc queries) 4 November 29th 05 03:49 PM
INDIRECT and Named Ranges referencing closed workbook gpie Excel Worksheet Functions 9 October 6th 05 11:24 PM


All times are GMT +1. The time now is 08:18 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"