<?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: Get only Visible Excel Worksheet Names in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100041#M47454</link>
    <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;Seems you have missed steps, as a result default xlsx Book1 is created by BP and output as "Sheet1" is shared.&lt;BR /&gt;Try with below steps in sequence to get expected output in collection:&lt;BR /&gt;1. MS Excel VBO::Create Instance&lt;BR /&gt;2. MS Excel VBO::Open Workbook&lt;BR /&gt;3. MS Excel VBO:: Copy of Get Worksheet Names&amp;nbsp; --&amp;gt; New Action to exclude hidden worksheet. Ensure Handle is same as output of create instance in step1&lt;BR /&gt;4. MS Excel VBO::Close Instance&lt;BR /&gt;&lt;BR /&gt;Best!</description>
    <pubDate>Mon, 28 Jun 2021 04:07:02 GMT</pubDate>
    <dc:creator>mkumar407</dc:creator>
    <dc:date>2021-06-28T04:07:02Z</dc:date>
    <item>
      <title>Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100037#M47450</link>
      <description>I'm familiar with the "Get Worksheet Names" action of the MS Excel VBO in BP 6.5.1.&lt;BR /&gt;&lt;BR /&gt;However this returns ALL Worksheet Names including Hidden.&lt;BR /&gt;&lt;BR /&gt;I need a solution that returns ONLY Visible Worksheet Names in Excel Workbooks that have a number of hidden&lt;BR /&gt;Worksheets that contain irrelevant data.&lt;BR /&gt;&lt;BR /&gt;The Workbooks are uploaded by third parties so I have no control over the format &amp;amp; content of them.&lt;BR /&gt;&lt;BR /&gt;I don't have any knowledge of VB coding, so I'm unable to modify a copy of the "Get Worksheet Names" action to achieve what I need.&lt;BR /&gt;&lt;BR /&gt;Any assistance would be appreciated, but a code snippet showing how to do this from the "Get Worksheet Names" action would be great.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 24 Jun 2021 03:41:34 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100037#M47450</guid>
      <dc:creator>MarkWhitford</dc:creator>
      <dc:date>2021-06-24T03:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100038#M47451</link>
      <description>hi Mark,&lt;BR /&gt;&lt;BR /&gt;Modify a copy of &lt;SPAN&gt;"Get Worksheet Names" and add below lines highlighted&amp;nbsp;in bold:&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;For Each sheet as Object in sheets&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;If sheet.Visible = True&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Worksheet_Names.Rows.Add(New Object() {sheet.Name})&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Next&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;this will help you to get only visible sheet names.</description>
      <pubDate>Thu, 24 Jun 2021 07:08:51 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100038#M47451</guid>
      <dc:creator>mkumar407</dc:creator>
      <dc:date>2021-06-24T07:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100039#M47452</link>
      <description>Thank you Manish, I will try this and post the result.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mark</description>
      <pubDate>Thu, 24 Jun 2021 07:36:15 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100039#M47452</guid>
      <dc:creator>MarkWhitford</dc:creator>
      <dc:date>2021-06-24T07:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100040#M47453</link>
      <description>Hi Manish,&lt;BR /&gt;I tried the suggested code in a copy of the "Get Worksheet Names" action to get only visible worksheets, as follows.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Dim wb As Object = GetWorkbook(Handle, WorkbookName)&lt;BR /&gt;Dim sheets as Object = wb.Sheets&lt;BR /&gt;&lt;BR /&gt;Worksheet_Names = New DataTable()&lt;BR /&gt;Worksheet_Names.Columns.Add("Name", GetType(String))&lt;BR /&gt;&lt;BR /&gt;If sheets IsNot Nothing Then&lt;BR /&gt;&amp;nbsp; &amp;nbsp; For Each sheet as Object in sheets&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If sheet.Visible = True&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Worksheet_Names.Rows.Add(New Object() {sheet.Name})&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Next&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;Unfortunately, this only returns the worksheet name "Sheet1", which is not present in the workbook I tested it on.&lt;BR /&gt;&lt;BR /&gt;The workbook I opened through Process stages of "Create Instance" &amp;amp; "Open Workbook" contains the following sheet names.&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;Version Control (Visible)&lt;/LI&gt;
&lt;LI&gt;TYPE2 &amp;lt;6ELB-02-00-MPS-002&amp;gt; (Visible)&lt;/LI&gt;
&lt;LI&gt;UFA&amp;lt;SAM&amp;gt; (Hidden)&lt;/LI&gt;
&lt;LI&gt;MT-LFN 5WES-65-17 (Hidden)&lt;/LI&gt;
&lt;LI&gt;type 3 MDU (Hidden)&lt;/LI&gt;
&lt;LI&gt;Table Input (Hidden)&lt;/LI&gt;
&lt;/UL&gt;
There are no errors when I run the action, it just doesn't get the currently active workbook visible worksheet names, seems like it gets&lt;BR /&gt;a default workbook sheet name.&lt;BR /&gt;&lt;BR /&gt;It is close it working if you could help a bit further, or if anyone else can contribute some suggestions ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mark Whitford</description>
      <pubDate>Mon, 28 Jun 2021 03:33:05 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100040#M47453</guid>
      <dc:creator>MarkWhitford</dc:creator>
      <dc:date>2021-06-28T03:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100041#M47454</link>
      <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;Seems you have missed steps, as a result default xlsx Book1 is created by BP and output as "Sheet1" is shared.&lt;BR /&gt;Try with below steps in sequence to get expected output in collection:&lt;BR /&gt;1. MS Excel VBO::Create Instance&lt;BR /&gt;2. MS Excel VBO::Open Workbook&lt;BR /&gt;3. MS Excel VBO:: Copy of Get Worksheet Names&amp;nbsp; --&amp;gt; New Action to exclude hidden worksheet. Ensure Handle is same as output of create instance in step1&lt;BR /&gt;4. MS Excel VBO::Close Instance&lt;BR /&gt;&lt;BR /&gt;Best!</description>
      <pubDate>Mon, 28 Jun 2021 04:07:02 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100041#M47454</guid>
      <dc:creator>mkumar407</dc:creator>
      <dc:date>2021-06-28T04:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100042#M47455</link>
      <description>Hi Manish,&lt;BR /&gt;You were 100% correct, I must have missed something when I first tested the solution.&lt;BR /&gt;&lt;BR /&gt;I tested it again from the process and it worked perfectly !&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Mark Whitford</description>
      <pubDate>Mon, 28 Jun 2021 23:35:46 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100042#M47455</guid>
      <dc:creator>MarkWhitford</dc:creator>
      <dc:date>2021-06-28T23:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get only Visible Excel Worksheet Names</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100043#M47456</link>
      <description>Great to know Mark!&amp;nbsp;&lt;BR /&gt;I am happy to help &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;</description>
      <pubDate>Tue, 29 Jun 2021 02:57:30 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Get-only-Visible-Excel-Worksheet-Names/m-p/100043#M47456</guid>
      <dc:creator>mkumar407</dc:creator>
      <dc:date>2021-06-29T02:57:30Z</dc:date>
    </item>
  </channel>
</rss>

