O
OldDog
Hi,
If I set up Excel like so:
$xl = New-Object -comobject excel.application
$xl.Visible = $true
$xl.DisplayAlerts = $False
$wb = $xl.Workbooks.Add()
$ws = $wb.Worksheets.Item(1)
and then do this: $xl.windows | gm
I see that there is a property called SplitRow and another called
SplitColumn.
SplitColumn Property int SplitColumn () {get} {set}
SplitRow Property int SplitRow () {get} {set}
So the question is how do I set these in my script?
And while we are at it, how about
Panes Property Panes Panes () {get}
I am told that this works in vbScript:
'Split Active Worksheet Window
With XL.ActiveWindow
.SplitColumn = 13
.SplitRow = 10
End With
TIA;
OldDog
If I set up Excel like so:
$xl = New-Object -comobject excel.application
$xl.Visible = $true
$xl.DisplayAlerts = $False
$wb = $xl.Workbooks.Add()
$ws = $wb.Worksheets.Item(1)
and then do this: $xl.windows | gm
I see that there is a property called SplitRow and another called
SplitColumn.
SplitColumn Property int SplitColumn () {get} {set}
SplitRow Property int SplitRow () {get} {set}
So the question is how do I set these in my script?
And while we are at it, how about
Panes Property Panes Panes () {get}
I am told that this works in vbScript:
'Split Active Worksheet Window
With XL.ActiveWindow
.SplitColumn = 13
.SplitRow = 10
End With
TIA;
OldDog