Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default custom functions in formula bar

hello,

i have a problem with a custom defined function only in office xp. (excel
2002 (10.2614.3311))
in office 2000 everything works fine.

i have a resource-table as a worksheet. this table is responsible for
languages english and german.
i also implemented a function as a public function for selecting the right
resource after changing the language.

in all worksheets in my workbook i use the function in the formula bar like:
=gLoadResString("Hello")
in excel 2000 the function returns the right value for the different
languages.
in excel xp i get #value. if i select a cell, go to the formula bar and
press enter, the return value comes up.

what is wrong?

thanks a lot

arasch


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default custom functions in formula bar

In either version, the formula you show would not recalculate unless you
forced a full recalculation. Excel looks at the argument list to determine
if a formula needs to be recalculated and your agrument has no cell
references - therefore it never needs to be recalculated.

Perhaps you need to add

Application.Volatile
as the first line of your function.

Just a guess of course.


A test before changing might be to do Ctrl+Alt+F9 in XP and see if the the
correct value is returned. If so, and you don't already have
application.Volatile in the function, then adding this might work.

--
Regards,
Tom Ogilvy
"Arasch Sajjadi" wrote in message
...
hello,

i have a problem with a custom defined function only in office xp. (excel
2002 (10.2614.3311))
in office 2000 everything works fine.

i have a resource-table as a worksheet. this table is responsible for
languages english and german.
i also implemented a function as a public function for selecting the right
resource after changing the language.

in all worksheets in my workbook i use the function in the formula bar

like:
=gLoadResString("Hello")
in excel 2000 the function returns the right value for the different
languages.
in excel xp i get #value. if i select a cell, go to the formula bar and
press enter, the return value comes up.

what is wrong?

thanks a lot

arasch




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
Custom functions Palpha32 Excel Worksheet Functions 6 July 21st 08 12:36 AM
Custom Functions DTTODGG Excel Worksheet Functions 7 January 11th 08 07:37 PM
Custom Functions Sloth Excel Discussion (Misc queries) 5 July 25th 06 04:59 PM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM
Custom Functions scott Excel Worksheet Functions 2 December 28th 04 12:23 AM


All times are GMT +1. The time now is 10:04 AM.

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"