Consulting

Results 1 to 2 of 2

Thread: Worksheet Cell Calculation Order

  1. #1
    VBAX Regular
    Joined
    Apr 2008
    Posts
    6
    Location

    Worksheet Cell Calculation Order

    Hello,

    I have created several user defined functions (UDF) which are used on the same worksheet - some of them rely on calculations to be done by others. (I am using Excel 2002).

    My problem is that when I recalculate the sheet, I obtain errors which I believe are due to the fact that certain UDFs cannot be evaluated (as they rely on calculations to be done by another UDF).

    Is there an 'optimal' way to design the spreadsheet in order to avoid tsuch issues please ? Any help on this would be much appreciated. I understand there are some logical steps which Excel follows, but if there are several UDFs I'm not sure how well it deals with order of calcculation. I guess there is some best way to organise your worksheet.

    Thanks in advance,

    Mitul

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If your UDFs are properly structured, that is all ranges are passed by parameter not hard-coded in the UDF, and the same for variable values, you should be okay.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •