How to focus on Bottom Pane?

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
 
J

Jan De Messemaeker

Hi,

First, I have no problem changing the lower pane, I tried this:

windowactivate windowname:=activewindow.Caption,toppane:=false
viewapply "Resource Sheet"

and that worked perfectly.

Then for your other question:

If ActiveWindow.BottomPane Is Nothing Then


Hope this helps,

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top