XL97: Worksheet Change Event Macro Fails to Run

Last reviewed: February 27, 1998
Article ID: Q172832
The information in this article applies to:
  • Microsoft Excel 97 for Windows

SYMPTOMS

When data on a worksheet is changed, a Microsoft Visual Basic for Applications Change event macro that you created does not run.

CAUSE

This problem occurs when the following conditions are true:

  • You create a Change event macro that is associated with a worksheet.

        -and-
    
  • You paste data in the worksheet from the clipboard instead of typing it.

        -or-
    
  • You create a dynamic data exchange (DDE) link from another program to the worksheet.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

You can create a Visual Basic event macro that runs whenever the data on a worksheet is changed. The Change event macro runs when data is added or updated on the worksheet. However, when you paste data from another program or update data by using a DDE link, the Change event does not occur.

REFERENCES

For more information about using a Change event, click the Index tab in Microsoft Visual Basic for Applications Help, type the following text

   change event

and then double-click the selected text to go to the "Change Event" topic.


Additional query words: XL97
Keywords : kbprg
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug


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: February 27, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.