_Application.OrganizerRename Method

Renames the specified style, AutoText entry, toolbar, or macro project item in a document or template.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub OrganizerRename ( _
    Source As String, _
    Name As String, _
    NewName As String, _
    Object As WdOrganizerObject _
)
'Usage
Dim instance As _Application
Dim Source As String
Dim Name As String
Dim NewName As String
Dim Object As WdOrganizerObject

instance.OrganizerRename(Source, Name, _
    NewName, Object)
void OrganizerRename(
    string Source,
    string Name,
    string NewName,
    WdOrganizerObject Object
)

Parameters

  • Source
    Type: System.String
    Required String. The file name of the document or template that contains the item you want to rename.
  • Name
    Type: System.String
    Required String. The name of the style, AutoText entry, toolbar, or macro you want to rename.
  • NewName
    Type: System.String
    Required String. The new name for the item.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Word Namespace