Hide excel sheet using UiPath invoke code

How to Hide the Excel sheet by using invoke code in UiPath.

Vb.net or c# code will be helpful.

Are you using excel COM object?

There’s a property called “Visible” in this excel COM object. If you set it to false, excel file will be hidden during program execution.

You can use some VB code like:
Dim appXL As Excel.Application
appXL = CreateObject(“Excel.Application”)
appXL.Visible = False

There’s a tutorial in tutorialspoint about excel COM object:
https://www.tutorialspoint.com/vb.net/vb.net_excel_sheet.htm

Hi @IbraheemVardi ,

Please find the workflow to achieve this.
InvokeCode.zip (7.9 KB)

Let me know if this works for you.

Thank you ! I will check and let you know

@ermanoj3101 Thank you! I will check and let you know

1 Like

@ermanoj3101 Thank you Manoj !! Your code is working for me.

1 Like

Great! @IbraheemVardi Can you mark it as a solution for others.
Thanks :slightly_smiling_face: