Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.setup
external usenet poster
 
Posts: 921
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
external usenet poster
 
Posts: 18
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
VLOOKUP - Not returning the proper number (Caro) Caroline Excel Worksheet Functions 1 February 25th 10 03:43 PM
Complex Multi-condition, multi-workbook count Heliocracy Excel Discussion (Misc queries) 0 October 4th 07 08:18 PM
UDF not returning proper value - circular reference/multi workbook Jeff Setting up and Configuration of Excel 1 February 1st 06 12:52 AM
removal of circular reference error on excel workbook load Nitin Mahadar Excel Programming 1 June 24th 05 02:01 PM
ReadOnly property of word document not returning proper value. Jeremy Gollehon[_2_] Excel Programming 1 September 5th 03 07:25 PM


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