Excel data formatting automatically

Hi Team,

I have a scenario where I need one column of the Excel file to have only Text values. How can I set the Format of that particular column in the template file, so whenever we enter any data it should convert to Text automatically.

TIA

Hi @MEGHA_cs

Use Format Cell Activity for formatting the particular column

Thanks,

I want to set the format in template only by using any formula or something like that… Cannot change in code.
can you please help.

@MEGHA_cs,

Set the format of the column to text in excel manually.

While writing the data to the template use write cell.

Write range will overwrite the format.

Thanks,
Ashok :slightly_smiling_face:

@MEGHA_cs

Format the Columns directly in the Template manually or create the rule for particular column

Thanks,

But is there a way can we do this without doing any changes in the code.

Thanks,

But this is not working as we are using Write range

1 Like

@MEGHA_cs,

Yes, update the template only if your code already have write cell activity to write the data.

Thanks,
Ashok :slight_smile:

@MEGHA_cs,

You will require code change. No other option.

Thanks,
Ashok :slight_smile:

Hi @MEGHA_cs I have built a sample code , where the Columns in template file is Configured for specific datatypes, kindly go through it and let us know if it helped

Column_Datatype_Check.zip (23.0 KB)