Application.TaskPanes(wdTaskPaneFormatting).Visible = True
Should work for you.
Dawn Crosier
Microsoft MVP
"Education Lasts a Lifetime"
This message is posted to a newsgroup. Please post replies and
questions to the newsgroup so that others can learn as well.
> How do I write the Visual basic code so the Styles and Formatting task
> pane
> is automatically visible every time a new document is loaded from a
> template?