<?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: Excel Autofill VBO in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64739#M17464</link>
    <description>Thanks Andrey, I will try your solution</description>
    <pubDate>Tue, 27 Oct 2020 12:46:00 GMT</pubDate>
    <dc:creator>TomasKlimas1</dc:creator>
    <dc:date>2020-10-27T12:46:00Z</dc:date>
    <item>
      <title>Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64735#M17460</link>
      <description>Hi,

Has anyone created an Excel Autofill VBO?&amp;nbsp; I've been playing around trying to create one, but not having much luck getting it to work.&amp;nbsp; If someone has done this and can share the code, that would be great.&amp;nbsp;

Thanks, Paul</description>
      <pubDate>Wed, 11 Apr 2018 00:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64735#M17460</guid>
      <dc:creator>PaulWiatroski</dc:creator>
      <dc:date>2018-04-11T00:41:00Z</dc:date>
    </item>
    <item>
      <title>I was able to get my…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64736#M17461</link>
      <description>I was able to get&amp;nbsp;my Autofill VBO to work. SourceRange and FillRange are passed in to the VBO.&amp;nbsp; See code below:
Dim wb, ws, source_range, fill_range As Object
Dim excel, sheet, range As Object
Try
wb = GetWorkbook(Handle, Workbook)
ws = GetWorksheet(Handle, Workbook, Worksheet)
wb.Activate()
ws.Activate()
excel = ws.Application
sheet = excel.ActiveSheet
&amp;nbsp;
source_range = sheet.Range(SourceRange)
fill_range = sheet.Range(FillRange)
source_range.AutoFill(Destination:=fill_range)
Success = True
Catch e As Exception
&amp;nbsp;Success = False
&amp;nbsp;Message = e.Message
Finally
&amp;nbsp;wb = Nothing
&amp;nbsp;ws = Nothing
&amp;nbsp;excel = Nothing
&amp;nbsp;sheet = Nothing
&amp;nbsp;range = Nothing
End Try</description>
      <pubDate>Wed, 11 Apr 2018 18:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64736#M17461</guid>
      <dc:creator>PaulWiatroski</dc:creator>
      <dc:date>2018-04-11T18:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: I was able to get my…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64737#M17462</link>
      <description>This code is going to work only if the SourceRange is selected on the Excel sheet, otherwise it will give an error.&lt;BR /&gt;Add the 1 line code in bold to get it working and make sure there are values in the excel sheet.&lt;BR /&gt;&lt;BR /&gt;source_range = sheet.Range(SourceRange)&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;BR /&gt;&lt;STRONG&gt;source_range.Select()&lt;/STRONG&gt; &lt;BR /&gt;fill_range = sheet.Range(FillRange)&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Nadiim Peerbocus&lt;BR /&gt;Assistant Manager&lt;BR /&gt;EY&lt;BR /&gt;Africa/Dar_es_Salaam&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Oct 2019 14:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64737#M17462</guid>
      <dc:creator>nadiim</dc:creator>
      <dc:date>2019-10-07T14:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64738#M17463</link>
      <description>Paste this as new action (tab) in Excel VBO:&lt;BR /&gt;&lt;A href="https://pastebin.com/x0gg5dK9" target="test_blank"&gt;https://pastebin.com/x0gg5dK9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Doesn't need anything to be selected etc, just give it an instance, workbook, worksheet, source range, optionally destination (uses CurrentRegion when blank),&amp;nbsp;optionally xlAutoFillType&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Edit to clarify:&amp;nbsp;&lt;/STRONG&gt;Not using original code, my own solution.&lt;BR /&gt;My point is that you don't need to activate anything, this should work just fine:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;wb = GetWorkbook(Handle, Workbook) &lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;ws = GetWorksheet(Handle, Workbook, Worksheet) &lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;ws.Range(SourceRange).AutoFill(Destination:=ws.Range(FillRange)) &lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;My version has extra options:&lt;BR /&gt;- worksheet index instead of name (optional, either will do)&lt;BR /&gt;- ActiveSheet is used, when worksheet name and index are not set.&lt;BR /&gt;- blank dstRange, then it tries to guess it with CurrentRegion, which is not exactly what Excel does internally, but close and good enough for most cases&lt;BR /&gt;- xlAutoFillType, because sometimes xlFillDefault is not what you want.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------</description>
      <pubDate>Thu, 10 Oct 2019 07:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64738#M17463</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2019-10-10T07:54:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64739#M17464</link>
      <description>Thanks Andrey, I will try your solution</description>
      <pubDate>Tue, 27 Oct 2020 12:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64739#M17464</guid>
      <dc:creator>TomasKlimas1</dc:creator>
      <dc:date>2020-10-27T12:46:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64740#M17465</link>
      <description>Hi Paul,&lt;BR /&gt;&lt;BR /&gt;Please refer the below video for achieving the functionality:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://www.youtube.com/watch?v=b_H-Zy_TJ4M" target="test_blank"&gt;https://www.youtube.com/watch?v=b_H-Zy_TJ4M&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it works for you.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ritansh Jatwani&lt;BR /&gt;Consultant&lt;BR /&gt;EY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2020 15:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64740#M17465</guid>
      <dc:creator>ritansh.jatwani</dc:creator>
      <dc:date>2020-10-27T15:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64741#M17466</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/374"&gt;@ritansh.jatwani&lt;/a&gt;, Excel Autofill does more than just repeating same cell value until the end of the table, look:&amp;nbsp;&lt;A href="https://www.excel-easy.com/examples/autofill.html" target="_blank" rel="noopener"&gt;https://www.excel-easy.com/examples/autofill.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrey Kudinov&lt;BR /&gt;Project Manager&lt;BR /&gt;MobileTelesystems PJSC&lt;BR /&gt;Europe/Moscow&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Oct 2020 23:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64741#M17466</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2020-10-27T23:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Autofill VBO</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64742#M17467</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/769"&gt;@AndreyKudinov&lt;/a&gt;- True, if we want to achieve the functionality as mentioned in &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.excel-easy.com/examples/autofill.html" target="_blank" rel="noopener"&gt;https://www.excel-easy.com/examples/autofill.html&lt;/A&gt;, then your code will work perfectly fine.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ritansh Jatwani&lt;BR /&gt;Consultant&lt;BR /&gt;EY&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Oct 2020 11:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Autofill-VBO/m-p/64742#M17467</guid>
      <dc:creator>ritansh.jatwani</dc:creator>
      <dc:date>2020-10-29T11:02:00Z</dc:date>
    </item>
  </channel>
</rss>

