Update Think-Cell graphs using UiPath Invoke code activity

Hi,
I hope this is the right place to ask :slight_smile:
I am trying to update graphs in PowerPoint (Think-Cell graphs) and found on Think-Cell site how to do it in Excel environment (and this works). But when I try to do this in UiPath using Invoke code activity, I get a compilation error in Call line:

Dim oApp2 As Microsoft.Office.Interop.PowerPoint.Application
Dim tcaddin As Object
tcaddin = oApp2.COMAddIns.Item(“thinkcell.addin”).Object
Call tcaddin.UpdateChart(oPres, “name”, oRange, True)

Error message:
BC30574: Option Strict On disallows late binding

oPres and oRange are declared properly. Can anyone help me with this? Any help is much appreciated. Thank you!

Dear Nastya, this is Mario from the think-cell support. I am not familiar with UiPath, but it looks like you must turn off the Strict On option or allow late binding in some other way:

The error message from your post:
BC30574: Option Strict On disallows late binding

However, “calls into think-cell are always late-bound”, compare the documentation on

See Microsoft’s knowledge base for an explanation:

You can reach our support team directly on support(at)think(dash)cell(dot)com

Kind regards,
Mario

1 Like

Thank you, Mario!

1 Like