<?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 Format data as a table in excel in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97454#M45453</link>
    <description>&lt;P&gt;Hi, I have an automation to create a queue report at the end of each days automation run, which generates the data into an excel format.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I want to find out how to automate formating the data in the excel file to be in a table format / have bold headers so that it looks a bit more presentable than the raw data. I can't find any instructions for this anywhere - can anyone help with this?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 11:25:32 GMT</pubDate>
    <dc:creator>at392</dc:creator>
    <dc:date>2023-03-23T11:25:32Z</dc:date>
    <item>
      <title>Format data as a table in excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97454#M45453</link>
      <description>&lt;P&gt;Hi, I have an automation to create a queue report at the end of each days automation run, which generates the data into an excel format.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I want to find out how to automate formating the data in the excel file to be in a table format / have bold headers so that it looks a bit more presentable than the raw data. I can't find any instructions for this anywhere - can anyone help with this?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:25:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97454#M45453</guid>
      <dc:creator>at392</dc:creator>
      <dc:date>2023-03-23T11:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Format data as a table in excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97455#M45454</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.blueprism.com/network/profile?UserKey=d04c96cf-c4e9-4dda-bbb6-225dabed687e" target="" class="author" aria-label="Alex Traynor Press space to toggle pop up" aria-haspopup="dialog" aria-controls="bio-bubble-popup-d04c96cf-c4e9-4dda-bbb6-225dabed687e-3"&gt;Alex Traynor,&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I will be attaching a MS Excel Customization VBO shortly - where you can Bold/Unbold the Header based on range, Colour Cell based on Range, Set Row Height based on range, Create Borders based on range n etc - it might help you to customise/design the excel report in presentable form.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Mukesh&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 11:55:38 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97455#M45454</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-03-23T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Format data as a table in excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97456#M45455</link>
      <description>&lt;P&gt;We have an action to put in the MS Excel VBO to do it&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:12:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97456#M45455</guid>
      <dc:creator>johan.m</dc:creator>
      <dc:date>2023-03-23T15:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format data as a table in excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97457#M45456</link>
      <description>&lt;P&gt;Hi Alex - You can additionally create a custom action in one of your extended or MS Excel VBO to Set Border, Set Bold&amp;nbsp; basis on Range:&lt;/P&gt;
&lt;P&gt;Add Inputs and Add a code stage in one of your newly created Action in your custom MS Excel VBO:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35410.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35474i5A3BAB459D2EED62/image-size/large?v=v2&amp;amp;px=999" role="button" title="35410.png" alt="35410.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35411.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35472i88EFC7D80AD27136/image-size/large?v=v2&amp;amp;px=999" role="button" title="35411.png" alt="35411.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Add below code in the code Stage (Highlighted in Red are two actions for Bold and Border, you can remove( &lt;SPAN style="color: rgb(224, 62, 45)"&gt;range.Borders.LineStyle = 1 &lt;SPAN style="color: rgb(0, 0, 0)"&gt;) if you only require Bold action, additionally if you want to colour your selected range Add one Additional line or copy paste the same code in new action and just replace the highlighted in Red lines in code by ( &lt;SPAN style="color: rgb(224, 62, 45)"&gt;range.Interior.Color=RGB(R,G,B&lt;/SPAN&gt;) ) and you would have to provide additional 3 inputs for R,G,B for colouring&amp;nbsp; :&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Dim wb, ws As Object&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim excel, sheet, range As Object&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Try&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;wb = GetWorkbook(Handle, Workbook)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;wb.Activate()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ws.Activate()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;excel = ws.Application&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;sheet = excel.ActiveSheet&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;range = sheet.Range(Reference)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(224, 62, 45)"&gt;range.Font.Bold() = True&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(224, 62, 45)"&gt;range.Borders.LineStyle = 1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: rgb(224, 62, 45)"&gt;&lt;SPAN style="color: rgb(0, 0, 0)"&gt;range.Interior.Color=RGB(R,G,B)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Success = True&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Catch e As Exception&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; Success = False&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; Message = e.Message&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Finally&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; wb = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; ws = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; excel = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; sheet = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; range = Nothing&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;End Try&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Make sure&lt;B&gt; &lt;/B&gt;you have all the Libraries and Namespaces listed in the Initialise page:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="35412.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/35476iAF40B9A4AF4AD274/image-size/large?v=v2&amp;amp;px=999" role="button" title="35412.png" alt="35412.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 16:37:05 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Format-data-as-a-table-in-excel/m-p/97457#M45456</guid>
      <dc:creator>Mukeshh_k</dc:creator>
      <dc:date>2023-03-23T16:37:05Z</dc:date>
    </item>
  </channel>
</rss>

