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.

XL2000: Macro to Restore Tab Split Box to Default Position


View products that this article applies to.

This article was previously published under Q213505

↑ Back to the top


Summary

In Microsoft Excel 2000, it is possible to adjust the space allocated for displaying sheet tabs and the horizontal scroll bar by moving the tab split box. The tab split box is located between the sheet tabs and the horizontal scroll bar.

This article contains sample Microsoft Visual Basic for Applications macros to restore the tab split box to its default position.

↑ Back to the top


More information

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 Microsoft Advisory Services. For more information, visit these Microsoft Web sites:

Microsoft Certified Partners - https://partner.microsoft.com/global/30000104

Microsoft Advisory Services - http://support.microsoft.com/gp/advisoryservice

For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS Some video drivers, particularly very high-resolution drivers (1024 x 768, 1280 x 1024, and so on), may exhibit "jumpiness" when you switch from one insertion point mode to another (for example when you move the insertion point from the worksheet, where it usually appears as an arrow or a plus sign [+], to the tab split box or the split box, where the insertion point appears as a two-way split symbol).

If your screen is jumpy, it may be difficult to determine whether your insertion point is positioned over the split box or the tab split box when these boxes are right next to each other. You may need to use a macro to restore the tab split box to its default position.

The following macro restores the tab split box to its default position.

Sample Visual Basic Procedure

Sub CenterTabSplitBox
    ActiveWindow.TabRatio = 0.6
End Sub
				
When you want to run this macro, click Macro on the Tools menu. Select the name of the macro from the list of macros, and then click Run to run the macro. Your tab split box is restored to the default position.

↑ Back to the top


References

For additional information about getting help with Visual Basic forApplications, click the article number below to view the article in the Microsoft Knowledge Base:
226118� OFF2000: Programming Resources for Visual Basic for Applications

↑ Back to the top


Keywords: KB213505, kbprogramming, kbinfo, kbhowto, kbdtacode

↑ Back to the top

Article Info
Article ID : 213505
Revision : 8
Created on : 11/23/2006
Published on : 11/23/2006
Exists online : False
Views : 288