<?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 Read Only Access in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Excel-Read-Only-Access/m-p/80818#M32485</link>
    <description>The fast way to solve this issue is to create a new action to handle with your read-only excel file.&lt;BR /&gt;You can follow the steps below.&lt;BR /&gt;&lt;BR /&gt;1. Go to "Open Workbook" page and duplicate it.&lt;BR /&gt;&lt;BR /&gt;2. Go to&amp;nbsp;"Open Workbook - Copy" page and open the "Open Workbook" code stage.&lt;BR /&gt;&lt;BR /&gt;3. Replace the code by this code below and rename this stage and page&lt;BR /&gt;&lt;BR /&gt;Dim wb as Object = GetInstance(handle).Workbooks.Open(FileName:=filename,ReadOnly:=True)&lt;BR /&gt;name = wb.Name&lt;BR /&gt;wb.Activate()&lt;BR /&gt;&lt;BR /&gt;4. That's all. And you can public this page and use it.&lt;BR /&gt;&lt;BR /&gt;Or you can add any parameters if you need them to do some excel manipulation.&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;Dim wb as Object = GetInstance(handle).Workbooks.Open(filename,UpdateLinks:=updatelinks,ReadOnly:=readonly1,Password:=password,WriteResPassword:=writerespassword,IgnoreReadOnlyRecommended:=True)&lt;BR /&gt;name = wb.Name&lt;BR /&gt;wb.Activate()&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;If my memory is correct, I remember in the old&amp;nbsp;MS Excel VBO version is using "GetInstance(handle).Workbooks.Open" method to open excel file.&lt;BR /&gt;But I don't know why BP changes this way to open excel file in new version. (It uses the private function called invoke which is defined by global code to open excel file now. I don't know how to pass more than one parameter to this method.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chenglung Tsai&lt;BR /&gt;Consultant&lt;BR /&gt;Avanade&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Sep 2019 08:35:00 GMT</pubDate>
    <dc:creator>ChenglungTsai1</dc:creator>
    <dc:date>2019-09-13T08:35:00Z</dc:date>
    <item>
      <title>Excel Read Only Access</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Read-Only-Access/m-p/80817#M32484</link>
      <description>Hi all&lt;BR /&gt;I am trying to write data from an excel file to another excel template using Excel VBO. I am facing an issue related to the access of the template, it's showing an error "Cannot access read-only document ".... .csv". I created the excel template using Create Instance and Create Workbook and then further saving it using Excel VBO.&lt;BR /&gt;Any leads on how to resolve this?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Prajjwal Rai&lt;BR /&gt;Application Engineer&lt;BR /&gt;Schneider Electric Private Limited&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2019 06:59:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Read-Only-Access/m-p/80817#M32484</guid>
      <dc:creator>PrajjwalRai</dc:creator>
      <dc:date>2019-09-13T06:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Excel Read Only Access</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Excel-Read-Only-Access/m-p/80818#M32485</link>
      <description>The fast way to solve this issue is to create a new action to handle with your read-only excel file.&lt;BR /&gt;You can follow the steps below.&lt;BR /&gt;&lt;BR /&gt;1. Go to "Open Workbook" page and duplicate it.&lt;BR /&gt;&lt;BR /&gt;2. Go to&amp;nbsp;"Open Workbook - Copy" page and open the "Open Workbook" code stage.&lt;BR /&gt;&lt;BR /&gt;3. Replace the code by this code below and rename this stage and page&lt;BR /&gt;&lt;BR /&gt;Dim wb as Object = GetInstance(handle).Workbooks.Open(FileName:=filename,ReadOnly:=True)&lt;BR /&gt;name = wb.Name&lt;BR /&gt;wb.Activate()&lt;BR /&gt;&lt;BR /&gt;4. That's all. And you can public this page and use it.&lt;BR /&gt;&lt;BR /&gt;Or you can add any parameters if you need them to do some excel manipulation.&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;Dim wb as Object = GetInstance(handle).Workbooks.Open(filename,UpdateLinks:=updatelinks,ReadOnly:=readonly1,Password:=password,WriteResPassword:=writerespassword,IgnoreReadOnlyRecommended:=True)&lt;BR /&gt;name = wb.Name&lt;BR /&gt;wb.Activate()&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;If my memory is correct, I remember in the old&amp;nbsp;MS Excel VBO version is using "GetInstance(handle).Workbooks.Open" method to open excel file.&lt;BR /&gt;But I don't know why BP changes this way to open excel file in new version. (It uses the private function called invoke which is defined by global code to open excel file now. I don't know how to pass more than one parameter to this method.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Chenglung Tsai&lt;BR /&gt;Consultant&lt;BR /&gt;Avanade&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Sep 2019 08:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Excel-Read-Only-Access/m-p/80818#M32485</guid>
      <dc:creator>ChenglungTsai1</dc:creator>
      <dc:date>2019-09-13T08:35:00Z</dc:date>
    </item>
  </channel>
</rss>

