<?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 MS Outlook VBO - Replace String in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/MS-Outlook-VBO-Replace-String/m-p/87924#M38565</link>
    <description>​Hello All,&lt;BR /&gt;&lt;BR /&gt;Not sure what is the best way to do it but I recently tried&amp;nbsp; to write a code stage to replace a special character in a given range. It was working fine and as a form of control I added a condition in the code stage to check if the special character(s) are available in the range before it even executes the replace command line. However the condition does not seem to be working. Can anyone advice?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RepString, StringToRep are data items &lt;BR /&gt;range = "A:A"&lt;BR /&gt;&lt;BR /&gt;Dim worksheet, excel, range As Object&lt;BR /&gt;worksheet = GetWorkbook(handle,Nothing).ActiveSheet&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;excel = worksheet.Application&lt;BR /&gt;&lt;BR /&gt;range = excel.Selection&lt;BR /&gt;&lt;BR /&gt;if excel.match(StringToRep,range) &amp;gt; 0 then &amp;lt;---------------------------- the condition I mentioned above&lt;BR /&gt;&amp;nbsp;range.Replace(StringToRep, RepString) &amp;lt;------------------- works fine&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;Finally&lt;BR /&gt;&amp;nbsp;worksheet = Nothing&lt;BR /&gt;&amp;nbsp;excel = Nothing&lt;BR /&gt;&amp;nbsp;range = Nothing&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;Does anyone have a suggestion?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jessie Jaye II Quema&lt;BR /&gt;RPA Configurator&lt;BR /&gt;HSBC&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Dec 2019 15:34:00 GMT</pubDate>
    <dc:creator>Jessie_Jaye_IIQ</dc:creator>
    <dc:date>2019-12-30T15:34:00Z</dc:date>
    <item>
      <title>MS Outlook VBO - Replace String</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Outlook-VBO-Replace-String/m-p/87924#M38565</link>
      <description>​Hello All,&lt;BR /&gt;&lt;BR /&gt;Not sure what is the best way to do it but I recently tried&amp;nbsp; to write a code stage to replace a special character in a given range. It was working fine and as a form of control I added a condition in the code stage to check if the special character(s) are available in the range before it even executes the replace command line. However the condition does not seem to be working. Can anyone advice?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RepString, StringToRep are data items &lt;BR /&gt;range = "A:A"&lt;BR /&gt;&lt;BR /&gt;Dim worksheet, excel, range As Object&lt;BR /&gt;worksheet = GetWorkbook(handle,Nothing).ActiveSheet&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;excel = worksheet.Application&lt;BR /&gt;&lt;BR /&gt;range = excel.Selection&lt;BR /&gt;&lt;BR /&gt;if excel.match(StringToRep,range) &amp;gt; 0 then &amp;lt;---------------------------- the condition I mentioned above&lt;BR /&gt;&amp;nbsp;range.Replace(StringToRep, RepString) &amp;lt;------------------- works fine&lt;BR /&gt;end if&lt;BR /&gt;&lt;BR /&gt;Finally&lt;BR /&gt;&amp;nbsp;worksheet = Nothing&lt;BR /&gt;&amp;nbsp;excel = Nothing&lt;BR /&gt;&amp;nbsp;range = Nothing&lt;BR /&gt;End Try&lt;BR /&gt;&lt;BR /&gt;Does anyone have a suggestion?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jessie Jaye II Quema&lt;BR /&gt;RPA Configurator&lt;BR /&gt;HSBC&lt;BR /&gt;Asia/Hong_Kong&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Dec 2019 15:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Outlook-VBO-Replace-String/m-p/87924#M38565</guid>
      <dc:creator>Jessie_Jaye_IIQ</dc:creator>
      <dc:date>2019-12-30T15:34:00Z</dc:date>
    </item>
  </channel>
</rss>

