Hi Bhavya,
Are you sure if you are using the latest updated MS Excel VBO because it already has this action without you to create any custom code stage. You can download the asset from Digital Exchange:
MS Excel VBOAlso, you can check the user guide for more details:
For formatting any specific cell as Bold, Italic or Underlined, you can create code stages. One such example is in the following thread:
Make Cell Font Bold
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.