Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.setup
Jeff
 
Posts: n/a
Default UDF not returning proper value - circular reference/multi workbook

Hi all,
I have a data workbook (values, and matrices) and a workbook does the
calculation (contains UDF). Calculation workbook with circular references is
linked to Data workbook.
When a value is changed in data workbook, the calculation workbook ALWAYS
returns a wrong answer (although the UDF is thoroughly tested and always
yields expected results). It can be corrected when the FIRST (only the
first) cell of the matrices is modified (even by adding 0 to the formula).
Once that problem is fixed, we can then change the value and it will always
returns the right value. Modifing non-leading cells on the matrix does force
recalculation, but it will always give wrong answer.
Does anyone have any idea on how to troubleshoot the problem?
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.setup
 
Posts: n/a
Default UDF not returning proper value - circular reference/multi workbook

hi,

did you ever use Application.Volatile method in your UDF?
Volatile forces UDF run when a worksheet is recalculated.

for more information , goto
http://exceltips.vitalnews.com/Pages...alculated.html

Best regards,

sjoo

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 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Repost:Automatically inserting a row in external workbook 50pingviner Excel Discussion (Misc queries) 3 December 28th 05 07:38 PM
#VALUE ! errorr for links to other workbook Janez Banez Excel Worksheet Functions 2 January 15th 05 10:58 PM
make hidden window or workbook visible without specify the name mango Excel Worksheet Functions 1 December 30th 04 03:05 PM
Stubborn toolbars in Excel 007 Excel Discussion (Misc queries) 9 December 11th 04 02:02 PM


All times are GMT +1. The time now is 02:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"