Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Creating a named range gives an error only when the filename is lo

I have an application which creates some reports in excel and in the process
creates some excel named ranges like this

"=\"ef1d5097-ad76-40ff-b09d-da4b2d5045cc\"+\"Total Capital Without
Abandonment Link1\"+'Cash Flow -
Gross'!$L$9:$L$11+\"Gross\"+\"1\"+\"1\"+\"Header&S ummary\"+\"0\"+\"0\"+\"0\""

exception gets raised. The details of the exception is given below:

The length of the range value is definitely lesser than 255 and it works
fine if the workbook filename is around 30 - 50 characters.
But if the file name gets to 75 characters, it throws the exception.
The path including the filename is also lesser than 255 characters.

Can anyone help me understanding how excel saves its named ranges
internally? How do the creation of the named range values depend the length
of the excel filename?

Exception:
"System.Runtime.Interopservices.ComException" occurs with the message

"The formula you typed contains an error. Try one of the following: \n\n€¢
Make sure you've included all parentheses and required arguments.\n€¢ To get
assistance with using a function, click Function (Insert menu).\n€¢ If you
include a reference to another sheet or workbook, verify that the reference
is correct.\n€¢ If you are not trying to enter a formula, avoid using an equal
sign (=) or minus sign (-), or precede it with a single quotation mark ( '
).\n€¢ For more information about common formula problems, click Help."

This has nothing to do with the named range value as I said it works
perfectly fine with shorter filenames.

--
Adi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Creating a named range gives an error only when the filename is lo


--
Adi


"Adi" wrote:

I have an application which creates some reports in excel and in the process
creates some excel named ranges like this

"=\"ef1d5097-ad76-40ff-b09d-da4b2d5045cc\"+\"Total Capital Without
Abandonment Link1\"+'Cash Flow -
Gross'!$L$9:$L$11+\"Gross\"+\"1\"+\"1\"+\"Header&S ummary\"+\"0\"+\"0\"+\"0\""

exception gets raised. The details of the exception is given below:

The length of the range value is definitely lesser than 255 and it works
fine if the workbook filename is around 30 - 50 characters.
But if the file name gets to 75 characters, it throws the exception.
The path including the filename is also lesser than 255 characters.

Can anyone help me understanding how excel saves its named ranges
internally? How do the creation of the named range values depend the length
of the excel filename?

Exception:
"System.Runtime.Interopservices.ComException" occurs with the message

"The formula you typed contains an error. Try one of the following: \n\n€¢
Make sure you've included all parentheses and required arguments.\n€¢ To get
assistance with using a function, click Function (Insert menu).\n€¢ If you
include a reference to another sheet or workbook, verify that the reference
is correct.\n€¢ If you are not trying to enter a formula, avoid using an equal
sign (=) or minus sign (-), or precede it with a single quotation mark ( '
).\n€¢ For more information about common formula problems, click Help."

This has nothing to do with the named range value as I said it works
perfectly fine with shorter filenames.

--
Adi


BTW, this is only in Excel 2003. In Excel 2007, it works perfectly fine.
Reply
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
Named Range Used in Formula Error Ronald[_2_] Excel Discussion (Misc queries) 3 July 23rd 08 11:50 PM
Creating a named range? dksaluki Excel Discussion (Misc queries) 2 February 22nd 08 03:12 AM
Array as a "named range" - formula ok in cells, but error as "named range" tskogstrom Excel Discussion (Misc queries) 11 December 28th 06 04:44 PM
Named range error Antman Excel Discussion (Misc queries) 3 July 13th 06 02:33 AM
Can I use named range in data range box when creating pie chart? BJackson Charts and Charting in Excel 2 August 17th 05 05:37 PM


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