Adamski
02-11-2010, 03:31 AM
Hello,
How can I open the task pane and navigate to a specific 'page' in it?
e.g. the Getting Started page
The following code will open it but how to go to different 'pages'?
' Open Pane
On Error Resume Next
' The following line fails if the task pane has not previously been opened!
Application.CommandBars("Task Pane").Visible = True
If Err.Number <> 0 Then
Debug.Print "Backup Pane Open Function"
'CommandBars.FindControl(ID:=7343).Execute ' Data - XML - XML Source...
CommandBars.FindControl(ID:=18).Execute ' File - New
End If
On Error GoTo 0
Cheers
How can I open the task pane and navigate to a specific 'page' in it?
e.g. the Getting Started page
The following code will open it but how to go to different 'pages'?
' Open Pane
On Error Resume Next
' The following line fails if the task pane has not previously been opened!
Application.CommandBars("Task Pane").Visible = True
If Err.Number <> 0 Then
Debug.Print "Backup Pane Open Function"
'CommandBars.FindControl(ID:=7343).Execute ' Data - XML - XML Source...
CommandBars.FindControl(ID:=18).Execute ' File - New
End If
On Error GoTo 0
Cheers