<?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 object-Selecting Range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-object-selecting-range/m-p/6315229#M1393427</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing result into one excel sheet and I am making it auto fit using OLE objects. I am facing the problem to select the range of columns and set the format as text. I am trying to in different ways but failing at selecting the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD OF book 'WORKSHEETS' = sheets.
CALL METHOD OF excel 'CELLS' = cell.
  CALL METHOD OF cell 'EntireColumn' = ole_columns .
  CALL METHOD OF ole_columns 'AutoFit'.
  call METHOD of excel 'COLUMNS' = columns.
  set PROPERTY OF columns 'RANGE' = 'A:K'.
  CALL METHOD of columns 'SELECTION' = selection.
  CALL METHOD of selection 'NUMBERFORMAT' = numberfor.
  set PROPERTY OF numberfor 'NUMBERFORMAT' = '@'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please correct me where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2009 03:55:26 GMT</pubDate>
    <dc:creator>praveen_hannu</dc:creator>
    <dc:date>2009-11-02T03:55:26Z</dc:date>
    <item>
      <title>OLE Excel object-Selecting Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-object-selecting-range/m-p/6315229#M1393427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am importing result into one excel sheet and I am making it auto fit using OLE objects. I am facing the problem to select the range of columns and set the format as text. I am trying to in different ways but failing at selecting the range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD OF book 'WORKSHEETS' = sheets.
CALL METHOD OF excel 'CELLS' = cell.
  CALL METHOD OF cell 'EntireColumn' = ole_columns .
  CALL METHOD OF ole_columns 'AutoFit'.
  call METHOD of excel 'COLUMNS' = columns.
  set PROPERTY OF columns 'RANGE' = 'A:K'.
  CALL METHOD of columns 'SELECTION' = selection.
  CALL METHOD of selection 'NUMBERFORMAT' = numberfor.
  set PROPERTY OF numberfor 'NUMBERFORMAT' = '@'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please correct me where I am going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 03:55:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-object-selecting-range/m-p/6315229#M1393427</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2009-11-02T03:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: OLE Excel object-Selecting Range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-object-selecting-range/m-p/6315230#M1393428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;small issue while accessing the cells, actual method is &lt;/P&gt;&lt;P&gt;call METHOD of excel 'RANGE' = columns EXPORTING #1 = 'A:K'.&lt;/P&gt;&lt;P&gt;  set PROPERTY OF columns 'NUMBERFORMAT' = '@'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2009 07:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-object-selecting-range/m-p/6315230#M1393428</guid>
      <dc:creator>praveen_hannu</dc:creator>
      <dc:date>2009-11-02T07:35:19Z</dc:date>
    </item>
  </channel>
</rss>

