<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems' in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85232#M36257</link>
    <description>Thanks Ramon, that worked a treat! I'll leave some feedback on the DX page - surprised that this hasn't been found sooner!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Hammond&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Jun 2022 13:40:00 GMT</pubDate>
    <dc:creator>john.hammond</dc:creator>
    <dc:date>2022-06-01T13:40:00Z</dc:date>
    <item>
      <title>Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85230#M36255</link>
      <description>&lt;P&gt;Morning all.&lt;BR /&gt;&lt;BR /&gt;When trying to run pages from within the latest Excel object (link - &lt;A data-url="https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-excel-vbo" class="embedly-content" href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-excel-vbo" target="_blank" rel="noopener"&gt;MS Excel VBO&lt;/A&gt;), I'm presented with the following error:&lt;BR /&gt;&lt;BR /&gt;'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'&lt;BR /&gt;&lt;BR /&gt;Upon investigating the Code stage, no such errors seem to exist. I've searched previous posts for this and it was suggested that a missing DLL could be the cause, but from the documentation, it doesn't appear as if this VBO requires any additional files. These are the listed dll's established:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28902.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29030i7B150043B33F1F4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="28902.png" alt="28902.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, when checking for errors within the Object itself, there is an error related to the compiling:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28903.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/29033iF1C800B1103E9A53/image-size/large?v=v2&amp;amp;px=999" role="button" title="28903.png" alt="28903.png" /&gt;&lt;/span&gt;I don't know enough about the code for this particular action, and although c isn't declared, I'm assuming this particular 'c' isn't referring to a filepath, rather a data item that hasn't been declared.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Am I missing something here? Do I need to amend the code for the 'Set Value of Cells in Range' object? Or just remove it entirely? Our team isn't using it, but I'm loathe to remove potential future functionality.&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Hammond&lt;BR /&gt;------------------------------</description>
      <pubDate>Wed, 01 Jun 2022 11:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85230#M36255</guid>
      <dc:creator>john.hammond</dc:creator>
      <dc:date>2022-06-01T11:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85231#M36256</link>
      <description>On the first line of code, add a coma after range and type c. Someone forgot to explicitly declare c and that's why you are finding that error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It should look like this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Dim ws, range, c As Object&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Try it and let me know if it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ramón Requena López&lt;BR /&gt;RPA Developer&lt;BR /&gt;Magenta Telekom&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 12:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85231#M36256</guid>
      <dc:creator>RamónRequena_L1</dc:creator>
      <dc:date>2022-06-01T12:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85232#M36257</link>
      <description>Thanks Ramon, that worked a treat! I'll leave some feedback on the DX page - surprised that this hasn't been found sooner!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Hammond&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85232#M36257</guid>
      <dc:creator>john.hammond</dc:creator>
      <dc:date>2022-06-01T13:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85233#M36258</link>
      <description>Cheers John, glad I could help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ramón Requena López&lt;BR /&gt;RPA Developer&lt;BR /&gt;Magenta Telekom&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 13:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85233#M36258</guid>
      <dc:creator>RamónRequena_L1</dc:creator>
      <dc:date>2022-06-01T13:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85234#M36259</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1981"&gt;@john.hammond&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;That's an interesting find. By chance, did anyone add the line &lt;STRONG&gt;Option Infer Off&lt;/STRONG&gt; to the VBO code anywhere? The reason I ask is that with a &lt;STRONG&gt;For Each...Next&lt;/STRONG&gt; loop, as in that Excel code, the data type of the element (in this case 'c') is implicitly inferred based on the type of the objects contained in the collection that's being iterated over. Based on Microsoft's documentation, this should only result in an error if the VB feature &lt;EM&gt;&lt;STRONG&gt;Option Infer&lt;/STRONG&gt;&lt;/EM&gt; is specifically disabled - as shown above. The default, is for Option Infer to always be on. You can read more about it &lt;A href="https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/for-each-next-statement" target="_blank" rel="noopener"&gt;here&lt;/A&gt; if you're interested.&lt;BR /&gt;&lt;BR /&gt;When I test the latest Excel VBO, and specifically that function, I don't get receive any compiler or runtime errors and the action executes as expected. Having said that, we'll make an update to the code to explicitly define the data type of that variable.&lt;BR /&gt;&lt;BR /&gt;What version of Blue Prism and the .NET Framework are you running? I want to make sure we test the VBO on something as close to your specific environment as possible to see if there's some condition there that might be contributing to this?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Jun 2022 20:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85234#M36259</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-06-01T20:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85235#M36260</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;There was a .NET compiler update from v6.8 onwards. It could be the reason behind the discrepency.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bruce Liu&lt;BR /&gt;Senior Product Consultant, Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;Australia/Sydney&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85235#M36260</guid>
      <dc:creator>bruce.liu</dc:creator>
      <dc:date>2022-06-02T00:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85236#M36261</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="0a9b5778-7ac7-4764-a9c9-822633ad2ffb" data-tag-text="@Bruce Liu" href="https://community.blueprism.com/people/bruce-liu1" data-itemmentionkey="0957a60e-2238-4a7f-9c82-033f7e9d3f8e"&gt;@Bruce Liu&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Yes, that could be. That's why I want to understand what version of BP and .NET John's using.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85236#M36261</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-06-02T00:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85237#M36262</link>
      <description>Hey Chris, I am aware that's a feature in VBA since a couple of years, wasn't sure about VB tho (I know both are pretty similar, but I know my bearings better around VBA).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Dunno about John's case, but we are in 6.4.2 and, as Bruce mentioned, implicit declaration is not working on VB code there either.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ramón Requena López&lt;BR /&gt;RPA Developer&lt;BR /&gt;Magenta Telekom&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jun 2022 07:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85237#M36262</guid>
      <dc:creator>RamónRequena_L1</dc:creator>
      <dc:date>2022-06-02T07:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems'</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85238#M36263</link>
      <description>Hi Eric. Apologies for the delay in getting back to you, had a long bank holiday weekend here in the UK!&lt;BR /&gt;&lt;BR /&gt;I'm running Blue Prism v6.6. Looking at the registry, it looks like the machine in question is running .NET 4.0.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Hammond&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2022 10:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/85238#M36263</guid>
      <dc:creator>john.hammond</dc:creator>
      <dc:date>2022-06-06T10:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile err</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/119356#M52969</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1086"&gt;@bruce.liu&lt;/a&gt;&amp;nbsp;&amp;amp; &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/833"&gt;@ewilson&lt;/a&gt;&amp;nbsp;, I recently upgraded my BluePrism to v7.4. The scheduled jobs terminate with this same error "ERROR: Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems". Can you help me with this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 04:01:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/119356#M52969</guid>
      <dc:creator>jincjoseph</dc:creator>
      <dc:date>2025-03-12T04:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: RE: Latest Excel VBO: 'Could not run the object because one of the code stages has a compile err</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/119369#M52970</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/63066"&gt;@jincjoseph&lt;/a&gt;&amp;nbsp;have you tried opening the VBO and seeing if any errors are presented? I'm running v7.4 and have no issues. Are you using the lates Excel VBO from the Digital Exchange?&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 12 Mar 2025 13:29:48 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Latest-Excel-VBO-Could-not-run-the-object-because-one-of-the/m-p/119369#M52970</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2025-03-12T13:29:48Z</dc:date>
    </item>
  </channel>
</rss>

