<?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 Expanding a ready-made in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68698#M21303</link>
    <description>Expanding a ready-made template would be easier but you can do it with code such as this...
myBorder = myRange.Borders
With myBorder(Border_Position)
	.LineStyle = Border_Style
	.Weight = Border_Weight
	.Color = Border_Colour
End With
...where Border_Position, Border_Style, Border_Weight and Border_Colour are all numerical inputs equivalent to the corresponding VBA enumerations.
For example, for Border_Position see XlBordersIndex here: &lt;A href="http://msdn.microsoft.com/en-us/library/office/ff835915(v=office.15).as" target="test_blank"&gt;http://msdn.microsoft.com/en-us/library/office/ff835915(v=office.15).as&lt;/A&gt;</description>
    <pubDate>Thu, 04 Sep 2014 13:56:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2014-09-04T13:56:00Z</dc:date>
    <item>
      <title>Excel - Setting borders</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68692#M21297</link>
      <description>Does anybody have any code which can apply borders to cells (either multiple or single) in excel? We have a process which creates spreadsheets for a 3rd party but the process owner wants them to look pretty!

I can't just add borders to the template as the spreadsheet we create can have between 1 and 2000 lines. The spreadsheets need to be printed and mailed and if we set borders down to line 2000 on the template, we will print off lots of blank pages.

Alex</description>
      <pubDate>Wed, 22 Jan 2014 17:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68692#M21297</guid>
      <dc:creator>AlexHowarth</dc:creator>
      <dc:date>2014-01-22T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Don't know if these are of</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68693#M21298</link>
      <description>Don't know if these are of use?  Looks like you can do this using VBA:-
&lt;A href="http://www.excel-user.com/2010/02/vba-put-borders-around-all-used-cells" target="test_blank"&gt;http://www.excel-user.com/2010/02/vba-put-borders-around-all-used-cells&lt;/A&gt;
&lt;A href="http://stackoverflow.com/questions/13121425/border-around-each-cell-in-" target="test_blank"&gt;http://stackoverflow.com/questions/13121425/border-around-each-cell-in-&lt;/A&gt;
Lots of other results as well when I searched on ""excel set cell borders vba</description>
      <pubDate>Thu, 30 Jan 2014 20:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68693#M21298</guid>
      <dc:creator>SamanthaShaw</dc:creator>
      <dc:date>2014-01-30T20:27:00Z</dc:date>
    </item>
    <item>
      <title>You could try adding a new</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68694#M21299</link>
      <description>You could try adding a new action to the MS Excel VBO to do this.
If you take a look in there, and examine the code stage for the Format Cell action, you can see that it is similar to the suggestion on the StackOverflow link, which suggests something like:-
Range(""C11"").Borders(xlEdgeRight).LineStyle = xlContinuous
Range(""A15:D15"").Borders(xlEdgeBottom).LineStyle = xlContinuous
(as an example).
So you could try adding a new one called Set Border which takes inputs of the cell range start and end, and then use code similar to the above.</description>
      <pubDate>Thu, 30 Jan 2014 20:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68694#M21299</guid>
      <dc:creator>SamanthaShaw</dc:creator>
      <dc:date>2014-01-30T20:58:00Z</dc:date>
    </item>
    <item>
      <title>Excel - Setting borders</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68695#M21300</link>
      <description>Thanks Sam, I did try this at the time but couldn't get it to work. I can't remember the exact error I was getting but when I googled it, it was something about cell borders overlapping. Was hoping someone may have had something built already!
We've got a workaround now but I'll re-visit it when I've got a little more time.</description>
      <pubDate>Wed, 12 Feb 2014 21:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68695#M21300</guid>
      <dc:creator>AlexHowarth</dc:creator>
      <dc:date>2014-02-12T21:07:00Z</dc:date>
    </item>
    <item>
      <title>Personally I've just created</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68696#M21301</link>
      <description>Personally I've just created templates and pushed the data into the already formatted template.</description>
      <pubDate>Wed, 03 Sep 2014 22:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68696#M21301</guid>
      <dc:creator>grant_warwick</dc:creator>
      <dc:date>2014-09-03T22:44:00Z</dc:date>
    </item>
    <item>
      <title>I agree with Grant - using a</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68697#M21302</link>
      <description>I agree with Grant - using a template is the way to go.
The standard Blue Prism reports use templates with the formatting already done.  It then copies the data row in the template down as many times as it needs for the data it wants to popultate - so that the report fits the data exactly.</description>
      <pubDate>Thu, 04 Sep 2014 13:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68697#M21302</guid>
      <dc:creator>Denis__Dennehy</dc:creator>
      <dc:date>2014-09-04T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Expanding a ready-made</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68698#M21303</link>
      <description>Expanding a ready-made template would be easier but you can do it with code such as this...
myBorder = myRange.Borders
With myBorder(Border_Position)
	.LineStyle = Border_Style
	.Weight = Border_Weight
	.Color = Border_Colour
End With
...where Border_Position, Border_Style, Border_Weight and Border_Colour are all numerical inputs equivalent to the corresponding VBA enumerations.
For example, for Border_Position see XlBordersIndex here: &lt;A href="http://msdn.microsoft.com/en-us/library/office/ff835915(v=office.15).as" target="test_blank"&gt;http://msdn.microsoft.com/en-us/library/office/ff835915(v=office.15).as&lt;/A&gt;</description>
      <pubDate>Thu, 04 Sep 2014 13:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68698#M21303</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2014-09-04T13:56:00Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68699#M21304</link>
      <description>Hi,
Does anyone have a capable VBO template to set borders in Excel file? What code should I use in code properties?
Thanks
P.K.</description>
      <pubDate>Mon, 11 Jul 2016 13:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Setting-borders/m-p/68699#M21304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-11T13:52:00Z</dc:date>
    </item>
  </channel>
</rss>

