<?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 Blue Prism Excel VBO Get Worksheet Only Visible? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Excel-VBO-Get-Worksheet-Only-Visible/m-p/96452#M44705</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can the template Get Worksheet As Collection be altered so it only gets visible data?&lt;/P&gt;
&lt;P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;	Dim ws as Object = _
	 GetWorksheet(handle, workbookname, worksheetname, False)

	' Do we have a sheet?
	sheetexists = ws IsNot Nothing
	' No sheet? No entry.
	If Not sheetexists Then Return

	ws.Activate()

	worksheetCollection = GetWorksheetUsedRangeAsDataTable(ws.UsedRange, True)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Since my collection is too large I'm applying an AutoFilter using this:&lt;/P&gt;
&lt;P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Dim worksheet as Object
Worksheet = GetWorkbook(handle, Nothing).ActiveSheet
worksheet.UsedRange.AutoFilter (Field:= FieldToBeFiltered, Criteria1 := criteriaToFilter)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;But I'm having a hard time extracting this data without the VBO trying to get the whole sheet which breaks the memory.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Atli&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 08:43:32 GMT</pubDate>
    <dc:creator>AtliHarðarson</dc:creator>
    <dc:date>2022-04-07T08:43:32Z</dc:date>
    <item>
      <title>Blue Prism Excel VBO Get Worksheet Only Visible?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Excel-VBO-Get-Worksheet-Only-Visible/m-p/96452#M44705</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can the template Get Worksheet As Collection be altered so it only gets visible data?&lt;/P&gt;
&lt;P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;	Dim ws as Object = _
	 GetWorksheet(handle, workbookname, worksheetname, False)

	' Do we have a sheet?
	sheetexists = ws IsNot Nothing
	' No sheet? No entry.
	If Not sheetexists Then Return

	ws.Activate()

	worksheetCollection = GetWorksheetUsedRangeAsDataTable(ws.UsedRange, True)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Since my collection is too large I'm applying an AutoFilter using this:&lt;/P&gt;
&lt;P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Dim worksheet as Object
Worksheet = GetWorkbook(handle, Nothing).ActiveSheet
worksheet.UsedRange.AutoFilter (Field:= FieldToBeFiltered, Criteria1 := criteriaToFilter)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;But I'm having a hard time extracting this data without the VBO trying to get the whole sheet which breaks the memory.&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Atli&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 08:43:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Excel-VBO-Get-Worksheet-Only-Visible/m-p/96452#M44705</guid>
      <dc:creator>AtliHarðarson</dc:creator>
      <dc:date>2022-04-07T08:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Blue Prism Excel VBO Get Worksheet Only Visible?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Excel-VBO-Get-Worksheet-Only-Visible/m-p/96453#M44706</link>
      <description>Hi Atli,&lt;BR /&gt;&lt;BR /&gt;Use&amp;nbsp; "Ws.Cells.SpecialCells(xlCellTypeVisible)" it will give you only visible cells&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Nilesh</description>
      <pubDate>Thu, 07 Apr 2022 09:23:38 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Blue-Prism-Excel-VBO-Get-Worksheet-Only-Visible/m-p/96453#M44706</guid>
      <dc:creator>NileshJadhavBP</dc:creator>
      <dc:date>2022-04-07T09:23:38Z</dc:date>
    </item>
  </channel>
</rss>

