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

ID: Q238178


The information in this article applies to:
  • Microsoft Excel 98 Macintosh Edition


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 Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:

http://www.microsoft.com/mcsp/
For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
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.

Additional query words: XL98

Keywords : kberrmsg xlvbainfo xlgpf
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug


Last Reviewed: November 5, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.