12-10-20 02:11 PM
12-10-20 02:45 PM
@Asitabha Deb,
I don't think you'll be able to program VBA directly in a code stage. While you can program VB.NET in a code stage, VB.NET and VBA are not the same thing. Yes, there are some similarities, but code written in a code stage is JIT compiled using the .NET Framework while VB is interpreted within the host program (ex Excel, Word, etc).
Can you create a copy of the target Excel, perform your work with the macro inside of it, and then just delete it afterwards?
Cheers,
12-10-20 02:50 PM
12-10-20 02:57 PM
12-10-20 03:10 PM
12-10-20 03:18 PM
12-10-20 04:06 PM
13-10-20 02:01 PM
Hi Asitabha,
Well I faced similar circumstances before. Below are my two my recommendation to handle the scenario
1. Make a separate file which calls the actual macro to perform calculations on the target file. The temp file which you are using would be in xlsm format. SO you can trigger the macro from blue prism. A slight change will be required
2. You can make your own VB.NET code based on VBA code. Its pretty similar, but you need to tweak with variables and functions. You can refer to the below link for compiling and error handling. Refer to stack overflow
https://www.tutorialspoint.com/compile_vb.net_online.php
3. Check Digital exchange for advanced excel functions. May be all you need is custom object
14-10-20 04:01 PM