UAE Editing Function Macro with Manual Calculation in Excel

Last reviewed: November 2, 1994
Article ID: Q71090

SUMMARY

If Manual Calculation is enabled and you edit a function macro in a spreadsheet with the Formula Replace command, you will receive an Unrecoverable Application Error (UAE). In Excel for OS/2, a system violation error results. If Automatic Calculation is enabled, this error does not occur.

MORE INFORMATION

Steps to Reproduce Problem

  1. Open a spreadsheet and a macro sheet.

  2. Change the spreadsheet's calculation to manual by choosing Calculation from the Options menu, selecting Manual and pressing ENTER.

  3. Enter the following on the macro sheet:

          A1: plusone               B1: plustwo
          A2: =ARGUMENT("number")   B2: =ARGUMENT("number")
          A3: =RETURN(number+1)     B3: =RETURN(number+2)
    
    

  4. Select cell A1 on the macro sheet. Choose Define Name from the Formula menu, activate the Function button and choose OK. Follow the same steps for cell A2.

  5. On the spreadsheet, enter the following:

          A1: 1           B1: =macro1!plusone(A1)
          A2: 2           B2: =macro1!plusone(A2)
    
       Cells B1:B2 will now display 2 and 3.
    
    

  6. Select B1:B2 and choose Replace from the Formula menu. Type "one" in the Find What edit box and "two" in the Replace With edit box (without the quotation marks). Press ENTER and a UAE or System Violation error results.

Workaround

This error does not occur when Calculation is set to Automatic. If Calculation is set to Manual you can bypass the error message by applying the Formula Replace command to the cells one at a time.

Microsoft is researching this problem and will post new information here as it becomes available.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.