From: Joe on
Hi,

I'm developing a Word 2003 Template with a custom task pane. I try to
compute the behavior that the task pane is only visible when i open the
document as a template. when i open the document in doc mode, the task pane
should be hidden.

I've tried to use the command: "Application.CommandBars["Task Pane"].Visible
= false", but it doesn't work. The task pane is always visible, when i open
the document in doc mode.

If somebody know how to fix this, please tell me. thx.
Joe




From: Doug Robbins - Word MVP on
Templates should not be designed to used by selecting Open from the File
menu and then selecting the template. Rather, they should be used by
selecting New from the File menu and then selecting the template.

I would use a userform rather than a task pane.

See http://gregmaxey.mvps.org/Create_and_employ_a_UserForm.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

"Joe" <Joe(a)discussions.microsoft.com> wrote in message
news:7889077E-D75E-42EE-80F7-D996861BFF8E(a)microsoft.com...
> Hi,
>
> I'm developing a Word 2003 Template with a custom task pane. I try to
> compute the behavior that the task pane is only visible when i open the
> document as a template. when i open the document in doc mode, the task
> pane
> should be hidden.
>
> I've tried to use the command: "Application.CommandBars["Task
> Pane"].Visible
> = false", but it doesn't work. The task pane is always visible, when i
> open
> the document in doc mode.
>
> If somebody know how to fix this, please tell me. thx.
> Joe
>
>
>
>