<?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: OLE Excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971914#M1695763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to record the required macro in excel, and analyze the VBA, if you have any doubt in converting VBA code to abap OLE, then show us the code, we will let you convert it to OLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyze the VBA macro and try to use the methods and properties available in excel. If at all you are unable to record such a macro then it cannot be achieved using OLE in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 09:12:04 GMT</pubDate>
    <dc:creator>Kartik2</dc:creator>
    <dc:date>2012-08-29T09:12:04Z</dc:date>
    <item>
      <title>OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971911#M1695760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to take data in excel and show to user . &lt;/P&gt;&lt;P&gt;There will be 5 columns in toto. 3 columns from sap and 2 has to be input by&lt;/P&gt;&lt;P&gt;the user . The two columns have validations . My requirement is user user&lt;/P&gt;&lt;P&gt;should not be allowed to copy and paste the data he is inputting as the&lt;/P&gt;&lt;P&gt;validation has to fire for every line of entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mandatory user has to type the two rows. No copy paste allowed .&lt;/P&gt;&lt;P&gt;Got the property&amp;nbsp; "CopyObjectswithcell = flase". But this works in a&lt;/P&gt;&lt;P&gt;macro but does not work through or from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 08:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971911#M1695760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-29T08:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971912#M1695761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can achieve it using OLE technique of abap. Here is one suggestion from me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Record the macro in excel, for what ever formatting and validation you require.&lt;/P&gt;&lt;P&gt;2. Open the VBA macro code generated and analyze&lt;/P&gt;&lt;P&gt;3. Depict the same macro in your ABAP program using OLE techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through the following document, it will help you in converting VBA macro code to abap OLE code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="28271" __jive_macro_name="document" class="jive_macro jive_macro_document" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 08:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971912#M1695761</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-08-29T08:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971913#M1695762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Mr Karthik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im doing in OLE only . Im taking data from sap and displaying in in excel using SAP ole code only. Data I have protected the cells which user cant edit . But 2 rows user input is required.&lt;/P&gt;&lt;P&gt;Here I do not want user to do copy and paste of his entries. How to achive this by OLE code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971913#M1695762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-29T09:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971914#M1695763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to record the required macro in excel, and analyze the VBA, if you have any doubt in converting VBA code to abap OLE, then show us the code, we will let you convert it to OLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyze the VBA macro and try to use the methods and properties available in excel. If at all you are unable to record such a macro then it cannot be achieved using OLE in abap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971914#M1695763</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-08-29T09:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971915#M1695764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The recorded OLE is Application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub Worksheet_SelectionChange(ByVal Target As Range)&lt;/P&gt;&lt;P&gt;Application.CutCopyMode = False&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;This event has to get triggerd .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971915#M1695764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-29T09:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971916#M1695765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to create a range object for those columns, which you dont want to allow cut copy mode. Then on that particular range try to perform the method / property CutCopyMode and equate it to the constant 'False'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kartik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 09:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971916#M1695765</guid>
      <dc:creator>Kartik2</dc:creator>
      <dc:date>2012-08-29T09:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971917#M1695766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried as you said .&lt;/P&gt;&lt;P&gt;But not working. If i record a macro its working but from call method &lt;/P&gt;&lt;P&gt;not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 10:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel/m-p/8971917#M1695766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-08-29T10:50:12Z</dc:date>
    </item>
  </channel>
</rss>

