Consulting

Results 1 to 5 of 5

Thread: Solved: How can the Task Pane active in Thisworkbook

  1. #1
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location

    Solved: How can the Task Pane active in Thisworkbook

    The code below does not work, any idea?

    [VBA] Private Sub Workbook_Open()
    If Application.CommandBars("Task Pane").Visible = False Then
    Application.CommandBars("Task Pane").Visible = True
    End If
    End Sub
    [/VBA]

  2. #2
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    The tricky code below works but I don't understanding why .
    [VBA]
    Private Sub Workbook_Open()
    If Application.CommandBars("Task Pane").Visible = False Then
    Application.OnTime Now + TimeValue("00:00:01"), "Dummy"
    Application.SendKeys "^{F1}"
    Exit Sub
    End If
    End Sub
    [/VBA]

    [VBA]
    ' Module
    Sub Dummy()

    End Sub

    [/VBA]
    Last edited by Emily; 02-20-2006 at 07:44 PM.

  3. #3
    VBAX Mentor tpoynton's Avatar
    Joined
    Feb 2005
    Location
    Clinton, MA
    Posts
    399
    Location
    look at the very bottom of this page - http://www.bmsltd.ie/MVP/MVPPage.asp ; apparently there are issues with the task pane if you have add ins installed. There is an app there which purports to address this issue, but i didnt want to install it to see if it provides a VBA solution.

    i was able to get the task pane to appear a couple of times through VBA, but it was sporadic and I cant get it to do it again!

    Also, I wasnt any more successful by removing add ins...
    Last edited by tpoynton; 02-20-2006 at 10:34 AM. Reason: another thought:

  4. #4
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    tpoynton

    Thanks for your reply. The link had already read.

  5. #5
    VBAX Contributor
    Joined
    Oct 2004
    Posts
    159
    Location
    Information for those interest in this topic.

    One TaiWan Excel MVP explained that Task Pane can be called in procedure by Application.SendKeys "^{F1}" but it cannot be shown if the procedure is still running.

    Therefore "Exit Sub" is used.

    The topic (written in Chinese, there is English translation in writer's site) below try to show "RSS Feed" in Task Pane.

    http://www.vba.com.tw/plog/post/1/274

    Regards
    Emily

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •