XL98: "System Error H80000003 (-2147483645)" Renaming TabStrip Tab (238178)



The information in this article applies to:

  • Microsoft Excel 98 Macintosh Edition

This article was previously published under Q238178

SYMPTOMS

When you click OK in the Rename dialog box, you may receive the following error message:
System Error &H80000003 (-2147483645).

CAUSE

This error message may error when you try to rename a tab on a TabStrip control.

WORKAROUND

Microsoft 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 a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site: For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site: To work around this problem, rename the tab at run time. The following sample code demonstrates how to rename the second tab in a TabStrip, using the Initialize event for a UserForm:
  1. Save and close any open workbooks. Then, open a new workbook.
  2. Start the Visual Basic Editor (press OPTION+F11).
  3. On the Insert menu, click UserForm.
  4. Add a TabStrip control to the UserForm.
  5. Double-click the UserForm to display its code module.
  6. In Procedure list, click Initialize.
  7. Modify the code for the Initialize event to the following:
    Private Sub UserForm_Initialize()
       UserForm1.TabStrip1.Tabs(1).Caption="Custom Tab"
    End Sub
    						
    Note, the tabs on a TabStrip are zero (0) based, which means the index number for the first tab is 0.
  8. Press F5 to run the UserForm.
The second tab in the UserForm is named Custom Tab instead of Tab2.

Modification Type:MajorLast Reviewed:6/23/2005
Keywords:kbbug kberrmsg kbnofix KB238178