Word’s Task Panes VBA Reference

Disclaimer    Terms of Use

By Steve Hudson

Version 1.2 – Published Sept 11, 2004

This reference explains how Task Panes work and, to the best of our ability, shows how to control the Word ones using VBA in Word 2002 and Word 2003.

This article is 47 pages long and will take more than a minute to load on a slow connection.  Hint:  The Table of Contents below won't work until the whole article has loaded!  If you are accessing the Internet by dial-up, you may want to download the Zipped Word version here: (Word 2003 format, 308 kb)

Given the large and complex nature of the subject, the article itself has a complex structure.  You can save yourself a lot of time by clicking here to look at the Introduction.

WebAuthor's Note:  Steve Hudson is a prolific contributor to the Word VBA newsgroups.  He is an Australian who sounds a bit like Crocodile Dundee -- you may find his conversation style disconcertingly "direct".  If you do, please try to remember that Steve devoted something like a month of full-time effort to making this article available, and that the article contains many thousand dollars worth of intellectual capital from Steve's business. 

The HTML code in this article was all written by Microsoft Word 2003.  If you don't like it, don't look.  If you have the time to sit there and hand-code HTML that is more to your liking, feel free.  Send me the result and I might have time to post that instead. If you express a valid point with wit and charm, I am very likely to be contrite and responsive. On the other hand, if you are complaining about our efforts, please take into account that we don't work for Microsoft, and I am a little 'over' people writing to complain about the service we provide for free -- so I may just be downright abusive! It's your dime ... {Grin}

Table of contents

Introduction

Taming the Work Pane

How To

What is it?

CommandBar of name Task Pane

CommandBarControl of type msoControlWorkPane

Developer References

Objects

Registry Hacks

Common Error Messages

Avoiding errors

New Built-in Word Commands

Taming Task Panes

How To

All Task Panes

Controlling Nice Task Panes

Controlling Bad Task panes

Disable / intercept / replace the Task Panes

What is it?

Technical Overview

Known Task Panes in 2003

A Collection of TaskPanes

Developer References

Known Task Pane VBA Summary

List all Nice Task Panes

Collaboration Task Panes

How To

New Document

Protect document

Shared Workspace

Getting Started

What is it?

Introduction

Application.NewDocument

Permission

SharedWorkspace

DocumentLibraryVersion

Editor

RecentFiles

New methods and properties

Developer References

Application.NewDocument

Range.Editors

Editor

Document.Permission

Shared WorkSpace Task Pane

Events

Properties and Methods

XML Task Panes

How To

XML Structure

XML Options dialog

XML Document

What is it?

Application.XMLNameSpaces

Document.XMLSchemaReferences

Range.XMLNodes

Developer References

Events

Properties and Methods

Reformatting Task Panes

How To

Reveal Formatting

Styles and Formatting

What is it?

Developer References

Properties

Enumerations

Mail Merge Task Panes

How To

What is it

Developer References

New Events

Properties and Methods

Other Docked dialogs

How To

Clipboard

Fax Service

Help

What is it?

The untouchables

Clipboard

Fax Service

Help

Developer References

Clipboard

Fax Service

Getting Started

Help

Ramifications and Ravings

The sound of a dialog not opening

So take me to task over it

God helps those who help themselves

It is all just a variant on Word Happens anyway

Smart marketing documents

The distant light