Invoke VBA- given key was not present in the dictionary

I’m using the invoke VBA activity and i see everything from config is passed correctly i still get this error, please help.

1 Like

Can you provide a screenshot of your VBA code?

Fine
Welcome back to uipath community
—make sure these things
—like key mentioned is there in the dictionary variable we have
—if we are getting that from a config file make sure that the wordings are same between config file and key mentioned while trying to fetch the value for that key
—or we can mention with a .ToString.Trim along with key while it is mentioned and assigned
This will avoid misspelling due to extra spaces

Hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @loka_shemanth