<?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: Replace statement is not working in OLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112242#M983189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jul 2010 12:47:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-19T12:47:29Z</dc:date>
    <item>
      <title>Replace statement is not working in OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112241#M983188</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;I am generating the excel using OLE and in excel i want ot use replace staement for a column . I want to write the code for that . In excel macro i found some code for that and it is mentioned below &lt;/P&gt;&lt;P&gt;    Selection.Replace What:="'", Replacement:="", LookAt:=xlPart, _&lt;/P&gt;&lt;P&gt;        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _&lt;/P&gt;&lt;P&gt;        ReplaceFormat:=False&lt;/P&gt;&lt;P&gt;I have convert this in ABAP but it is not working Please find the code in abap &lt;/P&gt;&lt;P&gt;CALL METHOD OF gs_cells_temp 'Replace'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;        #1 = '1'&lt;/P&gt;&lt;P&gt;        #2 = ' 2'&lt;/P&gt;&lt;P&gt;        #3 = 2&lt;/P&gt;&lt;P&gt;        #4 = 1&lt;/P&gt;&lt;P&gt;        #5 = 'False'&lt;/P&gt;&lt;P&gt;        #6 = 'False'&lt;/P&gt;&lt;P&gt;        #7 = 'False'.&lt;/P&gt;&lt;P&gt;Can anyone help me in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112241#M983188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Replace statement is not working in OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112242#M983189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jul 2010 12:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112242#M983189</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-19T12:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Replace statement is not working in OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112243#M983190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same issue, can you advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Hung&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112243#M983190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-17T12:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace statement is not working in OLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112244#M983191</link>
      <description>&lt;P&gt;I know this is a very 'early' reply, but I was searching for the same solution.&lt;/P&gt;&lt;P&gt;Finally managed it myself. The solution could help others as well.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  data: lo_xl_activesheet type ole2_object.
  data: lo_xl_allcells type ole2_object.
  data: lo_xl_activecell type ole2_object.

" lo_xl_activesheet is set to a worksheet using WORKSHEETS

  call method of lo_xl_activesheet 'CELLS' = lo_xl_allcells.
  call method of lo_xl_allcells 'FIND' = lo_xl_activecell
    EXPORTING
       #1 = '&amp;lt;&amp;lt;name_01_01&amp;gt;&amp;gt;'.

  call method of lo_xl_activecell 'REPLACE'
    EXPORTING
       #1 = '&amp;lt;&amp;lt;name_01_01&amp;gt;&amp;gt;'
       #2 = 'NewValue'.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/replace-statement-is-not-working-in-ole/m-p/4112244#M983191</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2021-07-20T14:58:50Z</dc:date>
    </item>
  </channel>
</rss>

