WksWindow Object

 

The WksWindow object represents a single worksheet document window.

 

Derived from: Window object (All methods and properties of Window apply to this object.)

 

Properties

ActiveCell

LeftColumn

Selection

TopRow

 

Example

The following script references the WksWindow object.

 

Sub Main

'Declares mvApp as an object

 Dim mvApp As Object

 

'Creates an instance of the MapViewer Application

'object and assigns it to the variable named "mvApp"

 Set mvApp = CreateObject("MapViewer.Application")

 

'Makes MapViewer visible

 mvApp.Visible = True

 

'Declares Wks as an object

 Dim Wks As Object

 

'Creates a worksheet document in MapViewer

'and assigns it to the variable named"Wks"

 Set Wks = mvApp.Documents.Add(mvDocWks)

 

'Declares WksWindow as an object

 Dim WksWindow As Object

 

'Assigns the new map window to the

'variable named "WksWindow"

 Set WksWindow = Wks.NewWindow

End Sub