Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Why cannot name a function A1 or NA77?

Excel 2007 didn't like my named ranges POP1, POP2, POP3 for this very reason.
What a PITA to change 'em all.

"Chip Pearson" wrote:

Just as a side note, Excel 2007 has 16,384 columns, versus 256 in
earlier version, so what were in 2003 and earlier valid function names
and defined names are no long valid as names in 2007. E.g,. In 2003,
you could have a function like

Function NA77(D As Double) As Double
NA77 = D * 100
End Function

This would work because in 2003, NA77 is not a valid cell address and
is thus legal as a function name. Bring that workbook into Excel 2007
and NA77 is a valid cell address, so the function won't be called and
you'll get errors.

Similarly, in 2003, NA77 could be used as a defined name since it was
not a valid cell address. If you bring that into 2007, Excel will ask
to change the defined name to _NA77 but won't attempt to change any
VBA code. Thus, you could get errors or unexpected results.

The summary, then, is to use longer names for functions and defined
names so you won't have problems when moving to 2007 and beyond.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Mon, 14 Sep 2009 14:14:57 -0700 (PDT), vsoler
wrote:

Why cannot name a function A1 or NA77?

Then a call to these functions is unable to find their definitions and
a #REF! is returned.

What's the problem?


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
Why cannot name a function A1 or NA77? vsoler Excel Programming 1 September 15th 09 11:53 AM
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM


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