The information in this article applies to:
SYMPTOMSWhen you modify a custom ActiveX Control that you are using in an Office program, the changes do not appear in the control in the Office program. CAUSEThis behavior occurs if the following conditions are true:
-and- -and- -and- This problem occurs because the files (.twd and .exd files) that contain the information about the control and are still associated with the original ActiveX Control you inserted; they are not updated or re-created when you modify the control. WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://msdn.microsoft.com/support/To work around this design limitation, delete the associated .exd and .twd files to allow new files to be created. After you do this, the custom ActiveX Control is updated. Deleting the .exd FilesTo delete the files, follow these steps:
Deleting the *.twd FilesYou can find the .twd file that is associated with the control in the same folder that contains the control. This file is named so that the root name of the file matches the name of the control, and the file name extension is .twd. For example, MSForms.twd.The best method for locating these files is to search by using Microsoft Windows Explorer. To delete the file, follow these steps:
Updating the ControlIn the Office program in which the control is being used, remove and reinsert the control. This step causes the control's type library to be read again, and the control is updated.STATUSThis behavior is by design in Microsoft Office for Windows. MORE INFORMATION
When an ActiveX control is inserted, two associated files are created.
These files contain the Object Type Library of the control and the extended
object members that Visual Basic for Applications or the Office program
adds.
REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
Q163435 VBA: Programming Resources for Visual Basic for Applications Additional query words: vba
Keywords : kbdta KbVBA kbPowerPt kbWord kbOffice2000 kbExcel97 kbexcel2000 kbpowerpt2000 kbword2000 |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |