<?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.APPLICATION in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014577#M712445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ruchi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood, you mean Document Object Model help in Excel. Yuo can find it in Microsoft Excel Help (for example in MS Excel 2003) pressing F1, then Contents-&amp;gt;Microsoft Excel Visual Basic Reference-&amp;gt;Mcrosoft Excel Object Model. There you'll find a complete list of all the Classes, Collections with their methods and properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aleh Pratasenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 21:41:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-14T21:41:09Z</dc:date>
    <item>
      <title>OLE : EXCEL.APPLICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014573#M712441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to download data to excel using EXCEL.APPLICATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am not able to find any place where I can see the all Attributes of Excel listed together.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like if I want to format the cell of excel what Attribute is to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know in detail about EXCEL.APPLICATION, I have checked the threads but could not find any details on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Ruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014573#M712441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: OLE : EXCEL.APPLICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014574#M712442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruchi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try do it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_cell1 type ole2_object,&lt;/P&gt;&lt;P&gt;      w_cell2 type ole2_object.&lt;/P&gt;&lt;P&gt;*Start of excel selection&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell1&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1 "Line&lt;/P&gt;&lt;P&gt;      #2 = 1. "Column&lt;/P&gt;&lt;P&gt;*End of excel selection&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Cells' = w_cell2&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = 1 "Line&lt;/P&gt;&lt;P&gt;      #2 = 50. "Column&lt;/P&gt;&lt;P&gt;  call method of h_excel 'Range' = h_cell&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      #1 = w_cell1&lt;/P&gt;&lt;P&gt;      #2 = w_cell2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*set property with you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  get property of h_cell 'Font' = gs_font .&lt;/P&gt;&lt;P&gt;  set property of gs_font 'Bold' = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Balbino&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:44:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014574#M712442</guid>
      <dc:creator>balbino_soaresferreirafil</dc:creator>
      <dc:date>2007-11-13T12:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: OLE : EXCEL.APPLICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014575#M712443</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;See this code.. it has all the colors&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;b&amp;gt;report  zkris_ole2.
 
type-pools ole2 .
data:  count type i,
       count_real type i,
       application type ole2_object,
       workbook type ole2_object,
       excel     type ole2_object,
       sheet type ole2_object,
       cells type ole2_object.
constants: row_max type i value 256.
data index type i.
 
 
data:
      h_cell        type ole2_object,        " cell
      h_f           type ole2_object,        " font
      h_int         type ole2_object,
      h_width       type ole2_object,
      h_columns     type ole2_object,
      h_rows        type ole2_object,
      h_font        type ole2_object,
      h_entirecol   type ole2_object.
.
 
create object excel 'EXCEL.APPLICATION'.
 
if sy-subrc ne 0.
  write: / 'No EXCEL creation possible'.
  stop.
endif.
 
set property of excel 'DisplayAlerts' = 0.
 
call method of excel 'WORKBOOKS' = workbook .
 
set property of excel 'VISIBLE' = 1.
 
 
* creating workbook
set property of excel 'SheetsInNewWorkbook' = 1.
call method of workbook 'ADD'.
 
call method of excel 'WORKSHEETS' = sheet
  exporting
  #1 = 1.
 
set property of sheet 'NAME' = 'Color Palette'.
call method of sheet 'ACTIVATE'.
 
data: col type i value 1,
row type i value 2,
col1 type i value 2,
col_real type i value 1.
 
row = 1.
col = 2.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'No.'.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Background'.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Foreground with white background'.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Foreground with black background'.
 
call method of excel 'Rows' = h_rows
  exporting
    #1 = '2:2'.
set property of h_rows 'WrapText' = 1.
 
col = 8.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'No.'.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Background'.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Foreground with white background'.
set property of h_cell 'Bold' = 1.
 
col = col + 1.
call method of excel 'Cells' = h_cell
  exporting
  #1 = row
  #2 = col.
set property of h_cell 'Value' = 'Foreground with black background'.
 
call method of excel 'Rows' = h_rows
  exporting
    #1 = '1:1'.
set property of h_rows 'WrapText' = 1.
get property of h_rows 'Font' = h_font.
set property of h_font 'Bold' = 1.
 
 
count = 1.
count_real = count.
row = 2.
col = 2.
do 56 times.
  perform write_num_and_color.
enddo.
 
 
* autofit
call method of excel 'Columns' = h_columns
  exporting
    #1 = 'B:K'.
get property of h_columns 'EntireColumn' = h_entirecol.
set property of h_entirecol 'Autofit' = 1.
 
 
 
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  write_num_and_color
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
form write_num_and_color.
 
" write the color number
  index = row_max * ( row - 1 ) + col.
  call method of sheet 'Cells' = cells
    exporting
    #1 = index.
  set property of cells 'Value' = count_real.
 
" write the color as the background
  col = col + 1.
  call method of excel 'Cells' = h_cell
    exporting
    #1 = row
    #2 = col.
  get property of h_cell 'Interior'   = h_int.
  set property of h_int  'ColorIndex' = count_real.
 
" write the color as the foreground with a white background
  col = col + 1.
  call method of excel 'Cells' = h_cell
  exporting
    #1 = row
    #2 = col.
  set property of h_cell 'Value' = 'Sample Text'.
  get property of h_cell 'Font'    = h_f.
  set property of h_f 'ColorIndex' = count_real.
 
" write the color as the foreground with a black background
  col = col + 1.
  call method of excel 'Cells' = h_cell
  exporting
    #1 = row
    #2 = col.
  get property of h_cell 'Interior'   = h_int.
  set property of h_int  'ColorIndex' = 1.
  set property of h_cell 'Value' = 'Sample Text'.
  get property of h_cell 'Font'    = h_f.
  set property of h_f 'ColorIndex' = count_real.
 
  row = row + 1.
  col = col - 3.
  count = count + 1.
  if count = 29.
    count = 1.
    row = 2.
    col = col + 6.
  endif.
  count_real = count_real + 1.
 
endform.                    "write_num_and_color&amp;lt;/b&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 12:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014575#M712443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T12:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: OLE : EXCEL.APPLICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014576#M712444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for above replies...but this is not exactly what I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I need to know whether there is some documentation available on EXCEL.APPLICATION where I can see the attributes available like 'Font', 'WrapText' , 'ColorIndex' etc. So that I can make use of them while downloading the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2007 15:59:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014576#M712444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-13T15:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: OLE : EXCEL.APPLICATION</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014577#M712445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ruchi !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understood, you mean Document Object Model help in Excel. Yuo can find it in Microsoft Excel Help (for example in MS Excel 2003) pressing F1, then Contents-&amp;gt;Microsoft Excel Visual Basic Reference-&amp;gt;Mcrosoft Excel Object Model. There you'll find a complete list of all the Classes, Collections with their methods and properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aleh Pratasenia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 21:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ole-excel-application/m-p/3014577#M712445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-14T21:41:09Z</dc:date>
    </item>
  </channel>
</rss>

