WordFile.RemoveTableRow
-----------------------

Removes a table row containing a placeholder.

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

MBS( "WordFile.RemoveTableRow"; WordFile; Placeholder ) 

**MBS**( **"WordFile.RemoveTableRow";** /\* Removes a table row containing a placeholder. \*/  
**$WordFile**; /\* The reference number of the open word file. \*/   
**$Placeholder**) /\* The name of the placeholder.e.g. "City" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WordFile | The reference number of the open word file. | $wordFile |
| Placeholder | The name of the placeholder. | "City" |

### Result

Returns OK or error.

### Description

Removes a table row containing a placeholder.  
If you have tables in your template word file and you only fill some rows, you can remove superfluous rows using this function.  
### Examples

Remove extra rows

 Set Variable \[$index ; Value:5\]  
Loop  
 Set Variable \[$r ; Value:MBS ( "WordFile.RemoveTableRow"; $WordFile ; "Bst\_Menge\_" &amp; If($index &lt; 10; "0"; "") &amp; $index )\]  
 Set Variable \[$r ; Value:MBS ( "WordFile.RemoveTableRow"; $WordFile ; "Bst\_Bemerkung\_" &amp; If($index &lt; 10; "0"; "") &amp; $index )\]  
 Set Variable \[$index ; Value:$index + 1\]  
 Exit Loop If \[$index &gt; 20\]  
End Loop  
### See also

- [WordFile.AppendTableRow](WordFileAppendTableRow.md)

### Release notes

- **Version 11.4**
    - Fixed a case where removing a table row with [WordFile.RemoveTableRow](https://www.mbsplugins.eu/WordFileRemoveTableRow.shtml) function would not be saved.
- **Version 7.0**
    - Added [WordFile.RemoveTableRow](http://www.mbsplugins.eu/WordFileRemoveTableRow.shtml) function.

### Example Databases

- [WordFile/WordFile](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/WordFile/WordFile.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 11.4pr1](https://www.mbsplugins.de/archive/2021-08-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 7.0pr1](https://www.mbsplugins.de/archive/2017-01-02/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 6/2021, Seite 20](https://filemaker-magazin.de/neuigkeit/4165-Appetithappen-FMM_202106)

This function checks for a license.

Created 20th December 2016 , last changed 20th December 2016

  
[WordFile.ReleaseAll](WordFileReleaseAll.md) - [WordFile.ReplaceTag](WordFileReplaceTag.md)

[HTML Version](WordFileRemoveTableRow.shtml)