<?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 OLE Excel: Protect Sheet &amp; Allow to Insert Rows! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920191#M687651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am down loading into Excel via OLE Automation from CRM system. Excel sheet needs to be protected, able to do it and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But user wants to add rows(not columns) in the protected excel sheet. I went through some threads and it says to use the method 'AutoEdit'. But  I don't know how to call this method &amp;amp; it's parameters to achieve my requirement. Is there any other method for this kind of requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me and any valid inputs &amp;amp; step by(s) would be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2007 19:59:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-19T19:59:05Z</dc:date>
    <item>
      <title>OLE Excel: Protect Sheet &amp; Allow to Insert Rows!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920191#M687651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am down loading into Excel via OLE Automation from CRM system. Excel sheet needs to be protected, able to do it and it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But user wants to add rows(not columns) in the protected excel sheet. I went through some threads and it says to use the method 'AutoEdit'. But  I don't know how to call this method &amp;amp; it's parameters to achieve my requirement. Is there any other method for this kind of requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me and any valid inputs &amp;amp; step by(s) would be highly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2007 19:59:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920191#M687651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-19T19:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel: Protect Sheet &amp; Allow to Insert Rows!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920192#M687652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use OLE objects in ABAP like the "EXCEL via OLE Automation" document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to create a macro in Excel with the same data and protect the cells. Then goto visual basic editor and you have the code in visual basic. At this moment you must translate the properties and methods in OLE (ABAP)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Oct 2007 09:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920192#M687652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-21T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel: Protect Sheet &amp; Allow to Insert Rows!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920193#M687653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jorge Hernandez. It was really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having one more issue,  How to call the method 'AutoFit' to make all selected columns to be fit. Please provide in detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2007 20:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920193#M687653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-23T20:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel: Protect Sheet &amp; Allow to Insert Rows!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920194#M687654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: gs_excel TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_wbooklist TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_application TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_wbook TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_activesheet TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_sheets TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_newsheet TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_cell1 TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_cell2 TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_cells TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_range TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_dibujo TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_dibujo1 TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_borde TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_pagina TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_hbreaks TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       g_o_hbreak TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_font TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_interior TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_columns TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_charts TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_chart TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_charttitle TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_charttitlechar TYPE ole2_object,&lt;/P&gt;&lt;P&gt;       gs_chartobjects TYPE ole2_object.&lt;/P&gt;&lt;P&gt;				&lt;/P&gt;&lt;P&gt;DATA gv_sheet_name(20) TYPE c.&lt;/P&gt;&lt;P&gt;DATA gv_outer_index LIKE sy-index.&lt;/P&gt;&lt;P&gt;DATA gv_intex(2) TYPE c.&lt;/P&gt;&lt;P&gt;DATA gv_line_cntr TYPE i. "line counter&lt;/P&gt;&lt;P&gt;DATA gv_linno TYPE i. "line number&lt;/P&gt;&lt;P&gt;DATA gv_colno TYPE i. "column number&lt;/P&gt;&lt;P&gt;DATA gv_value TYPE i. "data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gv_sheet_name = 'RPT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE OBJECT gs_excel 'EXCEL.APPLICATION'.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF gs_excel 'Visible' = 1.&lt;/P&gt;&lt;P&gt;  GET PROPERTY OF gs_excel 'Workbooks' = gs_wbooklist.&lt;/P&gt;&lt;P&gt;  GET PROPERTY OF gs_wbooklist 'Application' = gs_application.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF gs_application 'SheetsInNewWorkbook' = 1.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF gs_wbooklist 'Add' = gs_wbook.&lt;/P&gt;&lt;P&gt;  				&lt;/P&gt;&lt;P&gt;   GET PROPERTY OF gs_application 'ActiveSheet' = gs_activesheet.&lt;/P&gt;&lt;P&gt;  SET PROPERTY OF gs_activesheet 'Name' = gv_sheet_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD OF gs_activesheet 'Columns' = gs_columns.&lt;/P&gt;&lt;P&gt;  CALL METHOD OF gs_columns 'Autofit' NO FLUSH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 19:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-protect-sheet-allow-to-insert-rows/m-p/2920194#M687654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T19:52:25Z</dc:date>
    </item>
  </channel>
</rss>

