WordFile.SetProperty
--------------------

Sets a metadata property.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WordFile](component_WordFile.md) | [14.5](newinversion145.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WordFile.SetProperty"; WordFile; FieldName; Value ) 

**MBS**( **"WordFile.SetProperty";** /\* Sets a metadata property. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$FieldName**; /\* The name of the field.  
Can be title, subject, creator, keywords, description, lastModifiedBy, revision, created or modified.e.g. "title" \*/   
**$Value**) /\* The new value. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| FieldName | The name of the field.   Can be title, subject, creator, keywords, description, lastModifiedBy, revision, created or modified. | "title" |
| Value | The new value. |  |

### Result

Returns OK or error.

### Description

Sets a metadata property.  
Updates the core properties for the document.  
### Examples

Set creator field:

 Set Variable \[ $c ; Value: MBS ( "WordFile.SetProperty"; $w ; "creator"; "Joe" ) \]  
### See also

- [WordFile.GetProperty](WordFileGetProperty.md)

### Release notes

- **Version 15.0**
    - Improved [WordFile.GetProperty](https://www.mbsplugins.eu/WordFileGetProperty.shtml) and [WordFile.SetProperty](https://www.mbsplugins.eu/WordFileSetProperty.shtml) to work on custom and app properties, too.
- **Version 14.5**
    - Added [WordFile.GetProperty](https://www.mbsplugins.eu/WordFileGetProperty.shtml) and [WordFile.SetProperty](https://www.mbsplugins.eu/WordFileSetProperty.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin in Version 14.5](https://www.mbsplugins.de/archive/2025-01-08/New_in_MBS_FileMaker_Plugin_in/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.6pr1](https://www.mbsplugins.de/archive/2024-12-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.5pr4](https://www.mbsplugins.de/archive/2024-10-25/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th October 2024 , last changed 19th October 2024

  
[WordFile.SetMediaFile](WordFileSetMediaFile.md) - [WordFile.SetSkipDeletedText](WordFileSetSkipDeletedText.md)

[HTML Version](WordFileSetProperty.shtml)