> For the complete documentation index, see [llms.txt](https://docs.visualyze.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.visualyze.ai/rpa-studio/data/datatable/datacolumn/rename-data-column.md).

# Rename Data Column

Rename the data column of the specified column name or column index with a specified new column name from the data table.

### Input

* **Input** : [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)![](/files/-MVREnwPf_D3-qJvjjYd)\
  The Data Table object from which the column name is to be renamed.
* **Column Name** : `DynamicSearchString`\
  The name of the column is to be renamed from the column collection of the Data Table. If this property is set then the **Column Index** property is ignored.

  * `Text` - The full name of the column that is to be sorted.
  * `Regex` - The regex is used to find matching column names to be sorted.
  * `Wildcard` - The character that is used to search for matching column name. The asterisk (\*)and the question mark (?) are used as wildcard characters. The asterisk represents zero or more characters in a string. The question mark represents any one character.

{% hint style="info" %}
When multiple matches are found while using Search Methods, only the first match is considered.
{% endhint %}

{% hint style="info" %}
The `Text`, `Regex` and `Wildcard` search methods are supported.`EditDistance` is not supported.
{% endhint %}

* **Column Index**: [`Object Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)\
  &#x20;The index of the column that is to be renamed from the column collection of the Data Table. If this property is set then the **Column Name** property is ignored. <br>
* **New Column Name**: [`String Argument`](/getting-started/rpa-studio/arguments.md#types-of-arguments)![](/files/-MVRELsGa2FL7DFDoQP4)\
  &#x20;The new column name for renaming the specified data column from the column collection of the data table.

### Output

* **Output**: [`DataTable Variable`](/getting-started/rpa-studio/variables.md#datatable)\
  The Variable that stores the output data table with a new column name.
