Error found while using Invoke Code activity


I am trying to use the Invoke Code activity

These are the codes I took from online for testing and learning

Only the words ‘Set’ are underlined with error ‘Statement expected’

How do I solve this ?

Thank you

Hi @Ying_Zhen_Lee

The code which you written is VBA not VB.Net.
Invoke code works only with VB.Net
That’s why the errors are appearing.

Karthik Byggari

Hi @KarthikByggari,

Thank you for your reply! :smile:

Now I understand the problem
I will try out other methods

Thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.