<?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 word highlight text colour  to red in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112821#M50524</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i have written a table in ms word now i want change some text colour to red or green&amp;nbsp;&lt;/P&gt;&lt;P&gt;example in below table i want to change colour&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp; www text colour to red and&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &amp;nbsp;yyy&amp;nbsp;text colour to green.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;need solution how to achieve.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rama_krishna_0-1722491378307.png" style="width: 696px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39046i15CE0E3792C09D47/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Rama_krishna_0-1722491378307.png" alt="Rama_krishna_0-1722491378307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 05:53:35 GMT</pubDate>
    <dc:creator>Rama_krishna</dc:creator>
    <dc:date>2024-08-01T05:53:35Z</dc:date>
    <item>
      <title>Ms word highlight text colour  to red</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112821#M50524</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i have written a table in ms word now i want change some text colour to red or green&amp;nbsp;&lt;/P&gt;&lt;P&gt;example in below table i want to change colour&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp; www text colour to red and&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp; &amp;nbsp;yyy&amp;nbsp;text colour to green.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;need solution how to achieve.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rama_krishna_0-1722491378307.png" style="width: 696px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39046i15CE0E3792C09D47/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Rama_krishna_0-1722491378307.png" alt="Rama_krishna_0-1722491378307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 05:53:35 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112821#M50524</guid>
      <dc:creator>Rama_krishna</dc:creator>
      <dc:date>2024-08-01T05:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ms word highlight text colour  to red</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112829#M50528</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/20063"&gt;@Rama_krishna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please create a custom code with the below in the MS Word VBO&lt;/P&gt;&lt;P&gt;Sub ChangeTextColor()&lt;BR /&gt;Dim doc As Document&lt;BR /&gt;Dim rng As Range&lt;BR /&gt;&lt;BR /&gt;' Set the document object&lt;BR /&gt;Set doc = ThisDocument&lt;BR /&gt;&lt;BR /&gt;' Change "www" text color to red&lt;BR /&gt;Set rng = doc.Content&lt;BR /&gt;With rng.Find&lt;BR /&gt;.Text = "www"&lt;BR /&gt;.Replacement.Text = "www"&lt;BR /&gt;.Replacement.Font.Color = wdColorRed&lt;BR /&gt;.Execute Replace:=wdReplaceAll&lt;BR /&gt;End With&lt;BR /&gt;&lt;BR /&gt;' Change "yyy" text color to green&lt;BR /&gt;Set rng = doc.Content&lt;BR /&gt;With rng.Find&lt;BR /&gt;.Text = "yyy"&lt;BR /&gt;.Replacement.Text = "yyy"&lt;BR /&gt;.Replacement.Font.Color = wdColorGreen&lt;BR /&gt;.Execute Replace:=wdReplaceAll&lt;BR /&gt;End With&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Could you please implement the above and let me know the results.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:34:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112829#M50528</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2024-08-01T07:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Ms word highlight text colour  to red</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112853#M50540</link>
      <description>&lt;P&gt;I'd probably just say that rather than amending the official MS Word VBO, best practice is to create a separate VBO with any new actions (plus the connect/attach actions so you can use it).&amp;nbsp; Not amending the official word VBO will make it easer to take newer versions of it in future.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:36:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112853#M50540</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2024-08-02T09:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ms word highlight text colour  to red</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112872#M50544</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/36564"&gt;@faheemsd&lt;/a&gt;&amp;nbsp;below error i am getting&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;'Let' and 'Set' assignment statements are no longer supported.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 05:38:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/112872#M50544</guid>
      <dc:creator>Rama_krishna</dc:creator>
      <dc:date>2024-08-05T05:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Ms word highlight text colour  to red</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/113177#M50673</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/20063"&gt;@Rama_krishna&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologies for the delay in responding; my project work kept me quite busy.&lt;/P&gt;&lt;P&gt;I have made the code so simple that you may use any color to apply it to any text that is included in the Word document.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_0-1723927539019.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39159i82821F20668A40FB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_0-1723927539019.png" alt="faheemsd_0-1723927539019.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Input Parameters:&lt;/P&gt;&lt;P&gt;handle&lt;/P&gt;&lt;P&gt;document name&lt;BR /&gt;textTocolor&lt;/P&gt;&lt;P&gt;colorNumber&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_1-1723927644853.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39160i0B4F4FFAFE7B8AF0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_1-1723927644853.png" alt="faheemsd_1-1723927644853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Code used in Code stage&lt;/P&gt;&lt;P&gt;' Find and replace text color&lt;BR /&gt;Dim d As Object = GetDocument(handle,document_name)&lt;BR /&gt;Dim r As Object = d.Range&lt;/P&gt;&lt;P&gt;' Execute find and replace&lt;BR /&gt;Do While r.Find.Execute(textTocolor)&lt;BR /&gt;r.Font.Color = colorNumber ' wdColorRed&lt;BR /&gt;r.Start = r.End&lt;BR /&gt;Loop&lt;BR /&gt;' Release objects&lt;BR /&gt;r = Nothing&lt;BR /&gt;&lt;BR /&gt;for your requirement&lt;BR /&gt;red color number= 225&amp;nbsp;&lt;BR /&gt;Green color number =&amp;nbsp;5287936&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_1-1723928089377.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39163iC5DB6021FAA4D8C9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_1-1723928089377.png" alt="faheemsd_1-1723928089377.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_2-1723928121088.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39164iC24508C0B617FA9B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_2-1723928121088.png" alt="faheemsd_2-1723928121088.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_3-1723928158089.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39165i9A8FAEAC68C64600/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_3-1723928158089.png" alt="faheemsd_3-1723928158089.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_4-1723928275683.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39166iB562FE3628976E98/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_4-1723928275683.png" alt="faheemsd_4-1723928275683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="faheemsd_5-1723928293470.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/39167i00D73607AD784DA6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="faheemsd_5-1723928293470.png" alt="faheemsd_5-1723928293470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is how we can achieve adding the colors to the required text in Word Document using Blue Prism&lt;BR /&gt;Please let me know if you face any difficulties Implementing the above steps.&lt;BR /&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/15"&gt;@Michael_S&lt;/a&gt;&amp;nbsp; All Blue Prism users will find this code useful in changing the text color in Word documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2024 21:08:21 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Ms-word-highlight-text-colour-to-red/m-p/113177#M50673</guid>
      <dc:creator>faheemsd</dc:creator>
      <dc:date>2024-08-17T21:08:21Z</dc:date>
    </item>
  </channel>
</rss>

