How about using the 'Copy and Paste Worksheet Range' action of the Ms Excel VBO versus writing a new code.
If you correctly give the source and destination parameters this will work as expected.
There are tons of code on the web like the below which uses VB/VBA to merge multiple sheets into one sheet. https://www.rondebruin.nl/win/s3/win002.htm
You will need to find any suitable code and modify it to accommodate into Blue Prism's Code stage by making the necessary changes for its Visual Basic semantics.
On the other hand if you mention that you are new to BP then it is always recommended to use a ready made BP VBO action if it is available versus a VB/VBA code.
as a profession i am a VBA Developer and VBA Automation. I can write a code, just for curiosity how can i write a code in code stage , can we write directly code into code stage without starting without "Sub procedurename() "
Below are some links that will help on how to write a code in Blue Prism to interact with Excel.
The code for accessing an Excel application is advisable to be written in one of the new tabs in the MS Excel VBO because all the required functions like getting the workbook handle, calls to API, etc. are already written in this VBO (in the Initialise tab open the Information stage -> Global Code tab and check).
I am into VBA development too and I'm sure since you are already aware of VBA, writing code in BP to interact with Excel would not be a difficult task.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.