<?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 Check if A1 is blank, then… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73429#M26034</link>
    <description>Check if A1 is blank, then set its&amp;nbsp;value to anything you like, then run your Excel VBO/Get Worksheet as Collection Offset action.
It&amp;nbsp;does stupid stuff like:

Dim cell as Object = ws.Range(Start_Cell)
Dim r as Object = ws.UsedRange.Offset(cell.row-1,cell.column-1)
r.Select()
r.Copy()

If your Start_Cell is A5, UsedRange is something like A5:Z100, after offset, actual range you are readding is A9:Z104</description>
    <pubDate>Tue, 18 Dec 2018 14:04:00 GMT</pubDate>
    <dc:creator>AndreyKudinov</dc:creator>
    <dc:date>2018-12-18T14:04:00Z</dc:date>
    <item>
      <title>Get Worksheet as Collection Offset error - not reading headers</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73428#M26033</link>
      <description>hi there!

Does anyone else get this weird error:

We are reading a table from Excel a collection - using Excel VBO/Get Worksheet as Collection Offset. The table is located in A5.

Now. we experience weird error, where - if we had ANY data (header) above line 5 it will work fine, otherwise it will read the table, taking everything from 1st row (A6-N6) as headers. Which is then useless as we are using dynamic table (no columns are prescribed when the collection is initialised)..

Did anyone experience the same problem with this object/functionality?

How did you fix it?

One of proposed fixes (rather crude) is to populate A1 with any value (current date for example) at the top of the VBO code, but i was hoping someone would have corrected the faulty VB code by now..

Regards</description>
      <pubDate>Fri, 14 Dec 2018 17:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73428#M26033</guid>
      <dc:creator>Dawid.Pekala</dc:creator>
      <dc:date>2018-12-14T17:59:00Z</dc:date>
    </item>
    <item>
      <title>Check if A1 is blank, then…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73429#M26034</link>
      <description>Check if A1 is blank, then set its&amp;nbsp;value to anything you like, then run your Excel VBO/Get Worksheet as Collection Offset action.
It&amp;nbsp;does stupid stuff like:

Dim cell as Object = ws.Range(Start_Cell)
Dim r as Object = ws.UsedRange.Offset(cell.row-1,cell.column-1)
r.Select()
r.Copy()

If your Start_Cell is A5, UsedRange is something like A5:Z100, after offset, actual range you are readding is A9:Z104</description>
      <pubDate>Tue, 18 Dec 2018 14:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73429#M26034</guid>
      <dc:creator>AndreyKudinov</dc:creator>
      <dc:date>2018-12-18T14:04:00Z</dc:date>
    </item>
    <item>
      <title>Thanks aikudino.
Exactly…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73430#M26035</link>
      <description>Thanks aikudino.
Exactly what we were thinking..
Having come from a field where coding excel macros were daily bread I find the VBOs to be rather... basic..&amp;nbsp;
Regards</description>
      <pubDate>Wed, 19 Dec 2018 04:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-Worksheet-as-Collection-Offset-error-not-reading-headers/m-p/73430#M26035</guid>
      <dc:creator>Dawid.Pekala</dc:creator>
      <dc:date>2018-12-19T04:11:00Z</dc:date>
    </item>
  </channel>
</rss>

