Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Refreshing user defined functions

Hello,

I am having this annnnnoying problem with Excel (2007 and 2003). I have a
user defined function in my workbook. The function works fine (well unless
it's not working fine, but I'm getting the results I want from the function).
Except once a while, especially if close and open file, the cell containing
the user defined function just displays "#REF!"..... Now if I double click
the cell, and then press enter, it's back to working as usual.... and the
cycle goes on...... Is there a way to somehow refresh automatically? Shift-F9
not working...

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Refreshing user defined functions

Maybe you did not include all input for the function in the argument list?
If you access cells directly from within the function, Excel is not aware of that and does not include the cells in the dependency
tree, so recalculations may skip the function call.
You can include Application.Volatile in the function, but really the most reliable way is to include all input in the argument
list.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"kMan" wrote in message ...
| Hello,
|
| I am having this annnnnoying problem with Excel (2007 and 2003). I have a
| user defined function in my workbook. The function works fine (well unless
| it's not working fine, but I'm getting the results I want from the function).
| Except once a while, especially if close and open file, the cell containing
| the user defined function just displays "#REF!"..... Now if I double click
| the cell, and then press enter, it's back to working as usual.... and the
| cycle goes on...... Is there a way to somehow refresh automatically? Shift-F9
| not working...
|
| Thanks in advance


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Refreshing user defined functions

I did suggest to you in the other thread that it was poor UDF design!

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"kMan" wrote in message
...
Hello,

I am having this annnnnoying problem with Excel (2007 and 2003). I have a
user defined function in my workbook. The function works fine (well unless
it's not working fine, but I'm getting the results I want from the
function).
Except once a while, especially if close and open file, the cell
containing
the user defined function just displays "#REF!"..... Now if I double click
the cell, and then press enter, it's back to working as usual.... and the
cycle goes on...... Is there a way to somehow refresh automatically?
Shift-F9
not working...

Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Refreshing user defined functions

Hehehe... I knew you'd say that.... It's all OK now (well that's a worry
actually), Excel seems to have fixed it self... I remember having this
problem with recursive calculations (using built-in functions), Excel would
display #REF! until I "touched" the cell and then it does it's recursive
thing.... looon ago it was

"Bob Phillips" wrote:

I did suggest to you in the other thread that it was poor UDF design!

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"kMan" wrote in message
...
Hello,

I am having this annnnnoying problem with Excel (2007 and 2003). I have a
user defined function in my workbook. The function works fine (well unless
it's not working fine, but I'm getting the results I want from the
function).
Except once a while, especially if close and open file, the cell
containing
the user defined function just displays "#REF!"..... Now if I double click
the cell, and then press enter, it's back to working as usual.... and the
cycle goes on...... Is there a way to somehow refresh automatically?
Shift-F9
not working...

Thanks in advance




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
Excel not refreshing data for User Defined Functions [email protected] Excel Programming 1 November 3rd 06 11:48 PM
User defined functions without using VBA. [email protected] Excel Discussion (Misc queries) 0 June 13th 06 05:50 PM
Refreshing a User Defined Function ChrisA Excel Discussion (Misc queries) 1 November 11th 05 06:56 PM
User Defined Functions - Help Text - Make it Easy for the User Andibevan[_2_] Excel Programming 4 March 17th 05 09:51 AM
excel functions and User defined functions Kanan Excel Programming 4 May 20th 04 11:21 PM


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