Invoke code activity VB.Net example


#1

Hi there,

I am studying the invoke code activity in the new version of UiPath(V2017.1.6435). But I found that there is only a small resource about this new activity both inside the Forum and Google search. Does anybody have done a research about this new activity? I have some questions about it:

  1. Can we write VB.Net class/module inside this activity?
  2. How to connect Excel with VB.Net code directly?

Could anyone provide some training materials or some example codes? Appreciate it in advance.

I am learning an online tutorial(https://www.tutorialspoint.com/vb.net/index.htm about VB.Net, but I found difficulty to connect it to this Invoke code activity.

Best regards
M


Creating Functions/Subroutines inside Invoke Code
#2

Ok…

first:

You can reffer to methods available in the .NET library, the imports are done using UiPath.

second:
https://support.microsoft.com/en-us/help/302094/how-to-automate-excel-from-visual-basic--net-to-fill-or-to-obtain-data

I am quoting @andrzej.kniola here "Personally I just use it solely for void methods and from useability perspective " even this is related to invoke methods I think you don’t need to reinvent the wheel here.