<?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: Converting VBA Code to VB to Use in Code Stage in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75655#M28260</link>
    <description>Thank you @Pablo Sarabia! That worked! But yes, getting each bullet point within a collection would be great. &lt;BR /&gt;&lt;BR /&gt;Also, if I wanted to extract only the bullet points from a certain section of the document, how would I do that? The range of each document I need to process will be different (each will have a different number of characters, so would be hard to use a 'start' and 'finish' input variables within a range). However, the text that comes before and after the specific bullet points will be same in each document. &lt;BR /&gt;&lt;BR /&gt;For example, the document would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Section 1 - Header&lt;/CODE&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 1&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 2&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 3&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;CODE&gt;Section 2 - Header&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;I would like to get the bullet point text only between section 1 and section 2 of the document, but the section 1 and section 2 may be in a different range within each document I need to process, but their sections headings/titles will always be the same.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the help, I greatly appreciate it!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 15 Jul 2022 16:45:00 GMT</pubDate>
    <dc:creator>SeanScud</dc:creator>
    <dc:date>2022-07-15T16:45:00Z</dc:date>
    <item>
      <title>Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75646#M28251</link>
      <description>Hello, I have some VBA code I wrote to get all bullet point text in a Word document and I would like to use this within a code stage in Blue Prism to get all bullet point text within a text variable or preferably, a collection variable. The VBA code runs fine within Word, but I'm having trouble converting the code into VB to work within Blue Prism.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is&amp;nbsp; the VBA code:&lt;BR /&gt;&lt;BR /&gt;Dim Para As Paragraph&lt;BR /&gt;For Each Para In ActiveDocument.Paragraphs&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;If Para.Range.ListFormat.ListType = wdListBullet Then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MsgBox Para.Range&lt;BR /&gt;End If&lt;BR /&gt;Next Para&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The main issue I seem to be running across is "paragraph" is not a valid data type in Blue Prism that can be stored in a text or collection variable. So I'm a bit stuck on how to handle this. Also, I know that "wdListBullet" corresponds to a value of 2 for its enumeration, so I believe the value 2 needs to be used instead of "wdListBullet" within the code stage. Any help would be greatly appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 16:19:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75646#M28251</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-14T16:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75647#M28252</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-tag-text="@Sean Scudellari" href="https://community.blueprism.com/network/profile?UserKey=f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-itemmentionkey="a5fecc36-3aa8-416c-a077-692a14b1b64a"&gt;@Sean Scudellari&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think that BP is not recognising the Paragraph data item cause you don't have added the Interop dll&lt;BR /&gt;&lt;BR /&gt;Try checking this configuration for the VBO:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18182.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18335iC4D59954B4671E23/image-size/large?v=v2&amp;amp;px=999" role="button" title="18182.png" alt="18182.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I think, the best way to this is to create a new page in this VBO: &lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-word-vbo" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-word-vbo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This code does not return any compilation errors but I cannot test it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;Dim doc as Object = GetDocument(handle,documentname)&lt;BR /&gt;Dim range As Object&lt;BR /&gt;&lt;BR /&gt;Dim Para As Paragraph&lt;BR /&gt;&lt;BR /&gt;For Each Para In ActiveDocument.Paragraphs&lt;BR /&gt;If Para.Range.ListFormat.ListType = wdListBullet Then&lt;BR /&gt;&lt;BR /&gt;'do something&lt;BR /&gt;&lt;BR /&gt;End If&lt;BR /&gt;Next Para&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Try with this!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 19:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75647#M28252</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-07-14T19:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75648#M28253</link>
      <description>&lt;P&gt;Thank you @Pablo Sarabia! I was created this custom action within the Microsoft Word VBO as you mentioned. This is what my configuration looks like in the Word VBO:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18183.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18339i35E26F83AB57400C/image-size/large?v=v2&amp;amp;px=999" role="button" title="18183.png" alt="18183.png" /&gt;&lt;/span&gt;​&lt;BR /&gt;&lt;BR /&gt;I believe this matches your picture, correct? Or is there anything else I need to change within this configuration? Also, I'm using Word 2010. Perhaps this interop dll is not compatible with Word 2010?&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 20:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75648#M28253</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-14T20:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75649#M28254</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-tag-text="@Sean Scudellari" href="https://community.blueprism.com/network/profile?UserKey=f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-itemmentionkey="6013d2aa-1627-4946-a4b6-f59e37e53756"&gt;@Sean Scudellari&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;​I think it doesn't matter which version. What error do you get when you create a page within that VBO?&lt;BR /&gt;&lt;BR /&gt;Is the exact code you use the one you indicated above?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 21:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75649#M28254</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-07-14T21:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75650#M28255</link>
      <description>Hey, &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;, this is the error I'm getting. I had to make a couple adjustments to your code because I was getting some additional errors, but now I'm just left with this one error that I'm not sure how to resolve. Do I need to create an input for Paragraph?&lt;BR /&gt;&lt;BR /&gt;​&lt;span class="lia-inline-image-display-wrapper" image-alt="18187.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18341i1CBA8880F68876D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="18187.png" alt="18187.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 21:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75650#M28255</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-14T21:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75651#M28256</link>
      <description>Hi Sean,&lt;BR /&gt;&lt;BR /&gt;Try using this code at line number 5. It should ideally work:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-csharp"&gt;&lt;CODE&gt;Dim Para As Microsoft.Office.Interop.Word.Paragraph​&lt;/CODE&gt;&lt;/PRE&gt;
​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,&lt;BR /&gt;WonderBotz India Pvt. Ltd.&lt;BR /&gt;Blue Prism Community MVP | Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 00:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75651#M28256</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-07-15T00:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75652#M28257</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt; &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you, Devneet. I updated my code and am no longer getting an error, however, the output I get is &lt;SPAN data-offset-key="a8p9h-0-0"&gt;"System.__ComObject"&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;
&lt;DIV data-reddit-rtjson="{&amp;quot;entityMap&amp;quot;:{},&amp;quot;blocks&amp;quot;:[{&amp;quot;key&amp;quot;:&amp;quot;57ilo&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;Update - &amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;e87bk&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;Here's the code I now have:&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;9ss34&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;Dim doc as Object = GetDocument(handle,documentname)\r\n\rDim Para as Microsoft.Office.Interop.Word.Paragraph\r\n\r\nFor Each Para In doc.Paragraphs\r\n     If Para.Range.ListFormat.ListType = 2 Then\r&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;e21pb&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;      result = Para.ToString()\r\n\r\nEnd If\r\nNext Para&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;adusp&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;f3r0p&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;The output I am getting from this is \&amp;quot;System.__ComObject\&amp;quot;&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}},{&amp;quot;key&amp;quot;:&amp;quot;d5o0j&amp;quot;,&amp;quot;text&amp;quot;:&amp;quot;I feel like I am pretty close to getting this, but now just need to figure out how to get the values returned instead of \&amp;quot;System.__ComObject\&amp;quot;&amp;quot;,&amp;quot;type&amp;quot;:&amp;quot;unstyled&amp;quot;,&amp;quot;depth&amp;quot;:0,&amp;quot;inlineStyleRanges&amp;quot;:[],&amp;quot;entityRanges&amp;quot;:[],&amp;quot;data&amp;quot;:{}}]}"&gt;
&lt;DIV class="" data-block="true" data-editor="a99ece" data-offset-key="a99ece_initial-0-0"&gt;&lt;/DIV&gt;
&lt;DIV class="" data-block="true" data-editor="a99ece" data-offset-key="3hu29-0-0"&gt;
&lt;DIV data-offset-key="3hu29-0-0" class="public-DraftStyleDefault-block public-DraftStyleDefault-ltr"&gt;Here's the code I now have:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18193.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18345i8241ADC7AC7943C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="18193.png" alt="18193.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
I believe I need the .ToString() in the result or else I'll get an error, however, this is causing my result variable to have an output of &lt;SPAN data-offset-key="a8p9h-0-0"&gt;"System.__ComObject"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I feel like I am pretty close to getting this and just need to find a way to get the values in the output. &lt;BR /&gt;&lt;BR /&gt;Appreciate your help!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 01:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75652#M28257</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-15T01:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75653#M28258</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-tag-text="@Sean Scudellari" href="https://community.blueprism.com/network/profile?UserKey=f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-itemmentionkey="793333ca-cd26-4883-bf74-4077699c3fed"&gt;@Sean Scudellari&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;To get the text from a paragraph use this:&lt;BR /&gt;&lt;BR /&gt;​
&lt;PRE&gt;&lt;CODE&gt;result = Para.Range.Text​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;But, with this you only get one of the texts. Do you want to get a collection of all the texts or something similar?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 02:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75653#M28258</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-07-15T02:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75654#M28259</link>
      <description>Hi Sean&lt;BR /&gt;&lt;BR /&gt;You might find this page useful for any future vba conversion to vb &lt;A href="https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2003/aa192490(v=office.11)" target="_blank" rel="noopener"&gt;Converting Code from VBA to Visual Basic .NET | Microsoft Docs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 14:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75654#M28259</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-07-15T14:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75655#M28260</link>
      <description>Thank you @Pablo Sarabia! That worked! But yes, getting each bullet point within a collection would be great. &lt;BR /&gt;&lt;BR /&gt;Also, if I wanted to extract only the bullet points from a certain section of the document, how would I do that? The range of each document I need to process will be different (each will have a different number of characters, so would be hard to use a 'start' and 'finish' input variables within a range). However, the text that comes before and after the specific bullet points will be same in each document. &lt;BR /&gt;&lt;BR /&gt;For example, the document would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Section 1 - Header&lt;/CODE&gt;&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 1&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 2&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;CODE&gt;Bullet 3&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;CODE&gt;Section 2 - Header&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;I would like to get the bullet point text only between section 1 and section 2 of the document, but the section 1 and section 2 may be in a different range within each document I need to process, but their sections headings/titles will always be the same.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the help, I greatly appreciate it!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75655#M28260</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-15T16:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75656#M28261</link>
      <description>Hey &lt;A class="user-content-mention" data-sign="@" data-contactkey="ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-tag-text="@Michael ONeil" href="https://community.blueprism.com/network/profile?UserKey=ddd4d6a3-af39-4c64-8db4-cdb1d05ed669" data-itemmentionkey="f157ffc7-58af-4253-8016-5c81eb251751"&gt;@Michael ONeil&lt;/A&gt;. This is very helpful. Thank you so much for pointing this out!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2022 16:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75656#M28261</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-15T16:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75657#M28262</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt; Please see my reply above. Thanks!​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2022 21:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75657#M28262</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-18T21:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75658#M28263</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-tag-text="@Sean Scudellari" href="https://community.blueprism.com/network/profile?UserKey=f3a22847-3f55-4cfa-8f85-d8c631c63c49" data-itemmentionkey="06d59a4b-f1a0-4ed1-897d-76cdd302b938"&gt;@Sean Scudellari&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sorry, didn't see the message &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;First, in your code stage add two input parameters, "strStartText" and "strEndText". (You need to indicate here the start text that you want to find to start checking for bullet texts, and the end text to stop checking)&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also you need to add a output parameter as collection, in my example "dtResult"&lt;BR /&gt;​&lt;BR /&gt;
&lt;PRE class="language-vb" tabindex="0"&gt;&lt;CODE&gt;Dim doc as Object = GetDocument(handle,documentname)
Dim range As Object

Dim Para As Microsoft.Office.Interop.Word.Paragraph​

Dim table As New DataTable
table.Columns.Add("Bullets", GetType(String))

Dim blnStart as Boolean 
blnStart = false

For Each Para In ActiveDocument.Paragraphs

  If Para.Range.Text.Contains(strStartText) Then
    blnStart = true
  End If

  If Para.Range.ListFormat.ListType = wdListBullet and blnStart Then
    table.Rows.Add(Para.Range.Text)


  If Para.Range.Text.Contains(strEndText) Then
    exit for 
  End If

  
Next Para

dtResult = table&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;Try with this!&lt;BR /&gt;&lt;BR /&gt;Hope this helps you! And if this solves the problem, remember mark as the best answer&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2022 05:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75658#M28263</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-07-19T05:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Converting VBA Code to VB to Use in Code Stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75659#M28264</link>
      <description>Hey &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt; No worries! I don't think I tagged you properly in my previous reply.&lt;BR /&gt;&lt;BR /&gt;I was able to get your code working after tweaking it a little bit. I really appreciate the help!&lt;BR /&gt;&lt;BR /&gt;The final thing I need help with is starting the search for the headers on the second page of the document. I realized that the first page of the document has a table of contents that lists the same Section 1 and Section 2 header names. I need to have the code stage start searching for the bullets on page 2 of the document instead of page 1 so that it skips the table of contents. Please let me know if you know a solution. &lt;BR /&gt;&lt;BR /&gt;Thank you again!​​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sean Scudellari&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2022 23:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Converting-VBA-Code-to-VB-to-Use-in-Code-Stage/m-p/75659#M28264</guid>
      <dc:creator>SeanScud</dc:creator>
      <dc:date>2022-07-19T23:22:00Z</dc:date>
    </item>
  </channel>
</rss>

