# Invoke VB code is giving error

**URL:** <https://forum.uipath.com/t/invoke-vb-code-is-giving-error/127120>\
**Category:** Help\
**Tags:** system, activities\
**Created:** [June 21, 2019, 11:02am UTC](https://forum.uipath.com/t/invoke-vb-code-is-giving-error/127120 "2019-06-21T11:02:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vikaskulhari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vikaskulhari/32/57469_2.png) [@vikaskulhari](https://forum.uipath.com/u/vikaskulhari)\
**Post date:** [June 21, 2019, 11:18am UTC](https://forum.uipath.com/t/invoke-vb-code-is-giving-error/127120/2 "2019-06-21T11:18:40Z")

</div>

@DivyaT, check it out -

> [@InvokeCode Example](https://forum.uipath.com/t/invokecode-example/9311/3):
>
> Hi, The official training materials might not be up to date yet as this activity has only just been added to the Community edition. I can give a small example right here though. Just as with “Invoke Workflow”, you can specify arguments that will be accessible inside: [arguments] But instead of a workflow filename you enter Visual Basic code you want to execute, directly into an editor window. Suppose I want my code activity to randomly shuffle its string argument. I could program this as foll…

---

_[View the full topic](https://forum.uipath.com/t/invoke-vb-code-is-giving-error/127120)._
