new window
In Excel, the New Window function under the View menu.
After clicking, a new window can be added, as shown in the figure below, you will find that an excel file has two windows.
switch window
Different windows can be switched under the View menu.
At this point, the data structure of bookViews is as follows:
window data structure
<bookViews>
<workbookView xWindow="0" yWindow="760" windowWidth="34560" windowHeight="20160" xr2:uid="{00000000-000D-0000-FFFF-FFFF00000000}"/>
<workbookView xWindow="3560" yWindow="2660" windowWidth="27840" windowHeight="16940" xr2:uid="{A3F7BF7B-2F64-A142-B94A-0AC3461DEF17}"/>
</bookViews>
Introduction to Common Properties of Window (workbookView)
Here are a few attributes that were briefly introduced before, and are described in detail below:
xWindow
xWindow
Indicates the horizontal position of the window from the upper left corner, and the unit is twip. The xWindow = 0 of the first workbookView here means that the distance between the window and the upper left corner of the screen is 0, indicating that the window is attached to the screen at this time. The xWindow of the second workbookView = 3560, note that here is 3560 twip, converted into pt: 3560 / 20 = 178.
For the conversion of twip and pt, you can use the tool
www.unitconverters.net/length/twip…
yWindow
yWindow
Indicates the vertical position of the window from the upper left corner, and the unit is twip. Similar to xWindow, no more details.
windowWidth
windowWidth
Indicates the width of the window, and the unit is twip. Here the windowWidth of the first workbookView = 34560, converted to pt: 34560 / 20 = 1728.
windowHeight
windowHeight
Indicates the height of the window, the unit is twip. Similar to windowWidht, no more details.
activeTab
activeTab
The currently active tab, that is, the index of the currently open worksheet. Defaults to 0, so we don't see the activeTab property in the above data structure. If this property is set to 1, the interface you see is as follows.
showSheetTabs
showSheetTabs
Indicates whether to display the worksheet list, the default is true to display. If we manually change the value of showSheetTabs to false. Re-open excel and you can see the following interface:
<bookViews>
<workbookView xWindow="0" yWindow="760" windowWidth="34560" windowHeight="20120" xr2:uid="{00000000-000D-0000-FFFF-FFFF00000000}" showSheetTabs="false"/>
<workbookView xWindow="3560" yWindow="2660" windowWidth="27840" windowHeight="16940" activeTab="1" xr2:uid="{A3F7BF7B-2F64-A142-B94A-0AC3461DEF17}"/>
</bookViews>
As you can see, the worksheet list in the above figure is gone.