Application.OrganizerDelete Method
Word Developer Reference |
Deletes the specified style, AutoText entry, toolbar, or macro project item from a document or template.
Syntax
expression.OrganizerDelete(Source, Name, Object)
expression Required. A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Source | Required | String | The file name of the document or template that contains the item you want to delete. |
Name | Required | String | The name of the style, AutoText entry, toolbar, or macro you want to delete. |
Object | Required | WdOrganizerObject | The kind of item you want to copy. |
Example
This example deletes the toolbar named "Custom 1" from the Normal template.
Visual Basic for Applications |
---|
|
This example prompts the user to delete each AutoText entry in the template attached to the active document. If the user clicks the Yes button, the AutoText entries are deleted.
Visual Basic for Applications |
---|
|
See Also