Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Some events do not run when you use the RefEdit control in an Excel macro


View products that this article applies to.

Symptoms

Consider the following scenario. You use Microsoft Visual Basic for Applications (VBA) to create a UserForm in Microsoft Excel. Additionally, you insert the RefEdit ActiveX control in the UserForm. When you use the RefEdit control in an Excel macro, some events that are associated with the RefEdit control do not run. For example, although the following events appear in the Events list, these events do not run:
  • BeforeUpdate
  • AfterUpdate

↑ Back to the top


Workaround

You may be able to use another event, such as the Change event, to accomplish your intended functionality. Test several events to see which one works best for your intentions

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More information

A hotfix for Microsoft Office Excel 2003 is available to resolve other problems that you may experience when you use events that are associated with the RefEdit control. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
886669 Description of the Excel 2003 post-Service Pack 1 hotfix package: September 24, 2004

↑ Back to the top


Keywords: KB870756, kbvba, kbmacro, kbtshoot, kbbug

↑ Back to the top

Article Info
Article ID : 870756
Revision : 4
Created on : 9/12/2006
Published on : 9/12/2006
Exists online : False
Views : 316