M
Matt
Hi all - I created a macro in MSP2007 which should show the Split Window view
and switch the bottom pane to Resource Usage, and finish with focus being
back on top pane. So the end result is split window view Gantt Chart in top
and Resource Usage in bottom. However, for some reason it isn't working and
changes the top pane to resource usage. Is there a way of ensuring focus
moves to the bottom pane? Also, can I conditionally check if split window
view is already applied first?
Thanks!
Sub SplitResourceUsage()
WindowSplit
WindowActivate TopPane:=False
ViewApply Name:="Resource Usage"
WindowActivate TopPane:=True
End Sub
and switch the bottom pane to Resource Usage, and finish with focus being
back on top pane. So the end result is split window view Gantt Chart in top
and Resource Usage in bottom. However, for some reason it isn't working and
changes the top pane to resource usage. Is there a way of ensuring focus
moves to the bottom pane? Also, can I conditionally check if split window
view is already applied first?
Thanks!
Sub SplitResourceUsage()
WindowSplit
WindowActivate TopPane:=False
ViewApply Name:="Resource Usage"
WindowActivate TopPane:=True
End Sub