Colored Cells in Excel sheet

hi
we have a excel sheet with values which we created based on a tutorial spreadsheet. We tried the exactly the same steps provided in the PDF but it did not work. however when we used the original file we got the same output that was shown in the PDF screenshot. Here is what we tried.
we created a spreadsheet similar to the one given below
City     JAN     FEB     MAR     APR     MAY     JUN     JUL     AUG     SEP     OCT     NOV     DEC     Low     High
ABILENE, TX     44     49     56     65     73     80     84     83     76     66     54     45     44     84
AMARILLO, TX     36     41     48     56     65     74     78     76     69     58     45     37     36     78
AUSTIN/BERGSTROM, TX     48     53     60     67     75     80     83     82     78     69     58     50     48     83
In the canvas we placed a spreadsheet table control which contained the city names , a line chart and 2 gauges for HIGH and LOW values.
Now the problem we faced was when we click on the city name in the table control nothing changed in the chart even though it was mapped to the correct cells.
In the original file that came with the PDF there were YELLOW and RED blank cells to which it asked to map but those cells didnot contain any hidden data also. We would like to know is there any significance of those colored cells. whenever we download some sample excel file from the internet for a dashboard creation it has some colored cells, we would like to know does those cells contain any hidden info to make the dashboard work.
Thanks
GURU

Most of the times, colored cells are used by the dashboard's designer to represent cells that are used at run time as origin/destination cells. This means that although at design time they are empty (they indeed are - there is no "hidden" data there), they contain data when the dashboard is executed.
Some suggestions:
- Check the component's properties to see which cells it uses.
- Also, when in Preview, go to File -> Snapshot -> Current Excel Data to see what the Excel file actually looks like at run time. There you should see data in the colored cells.
HTH,
JK

Similar Messages

  • How to download the ALV output with colors into the excel sheet

    Hi,
      I'm having an ALV Grid report output where each and every row has some colors in it. When i download it to an excel sheet whatever the colors that comes on the output of the report the same should come in the excel sheet. When i download the output to an excel sheet using List --> Export -->Local file . If i open the excel files no colors are coming in the excel sheet.
    can anyone tell how to get the colors in the excel sheet also. thanks...
    Regards,
    Rose.

    Hi Camila,
    Use the OLE concept.
    Check the below threads:
    Colors in Excel Sheet
    colors in alv
    Regards,
    Soumya.

  • How save data from the one row of db to the one cell of excel sheet

    hi
    how to save data from one row of db to the one cell of excel sheet and so on..............

    hi,
    see this link
    http://poi.apache.org/hssf/quick-guide.html
    Regards,
    Ram

  • How to set the Border of a cell in excel sheet

    dear all,
    using OLE2 i want to set the cell's border in an excel sheet
    so whats the property for that?
    ole2.set_property(WorkCell,???, ???);
    thanks and best regards,
    very urgent plz
    thanks in advance

    Could you, please, definitly remove the "urgent" word from your vocabulary when you post on this forum. We are all volonteers and not paid at all to answer the qestions. I repeat one more time that there is no post more urgent than another.
    If you are so in a hury, as said Gerd, contact the Oracle support.
    Francois

  • Colored rows in Excel sheet

    Hi all,
    Following the tutorial "Exporting context data into Excel using the WD binary cache" I could export the contents of a webdynpro table to an Excel sheet.I would like to know whether there is any provision to change the color of rows in the generated excel sheet, based on some conditions.
    Thanks n regards
    Shyam.

    Hi Shyam,
    Check this Excel data formatting
    Best regards, Maksim Rashchynski.

  • How to move to the next cell in excel sheet

    hi,
    i am working with excel sheet using cvi. i need to put data in cells for that i have function ExcelRpt_WriteData();
    but with this i can give fixed cell range , instead of that is there any function in cvi to point next cell automatically instead of giving cell range we will give intially starting cell range then it has to point to next cell in the sheet. is there any function to do that what i amn expecting.
    Thanks & Regards

    Hello,
    Excel Report Generation instrument is built on top of excel2000.fp, the complete ActiveX interface to Excel. excel2000.fp is loaded together with ExcelReport.fp when you run your project, and you should be able to use functions from both instruments in your app (I have not tested it but since ExcelReport is a wrapper of calls to excel2000 instrument, I'm confident it is true).
    Given this, you can look at excel2000dem example project that you can find on your disk in samples\activex\excel folder together with excelreportdemo which you may have already studied. In this example there are functions to write to a range of cells addressed by row and col indexes, specifically Excel_RangeSetItem (). This can be a good starting point: there is not the automatic cell advance, but you can address cells individually so you can develop your function according to your needs. Excel2000.fp is a low level interface to Excel: in this respect it is a bit more obscure and requires more effort in use but includes more functions than ExcelReport.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to wrap JTable cell like EXCEL sheet??

    Hi All,
    I am using JTable and i want to wrap cell of that table like excel sheet whtn text length is more .
    i m using jdk 1.4.2 & jre 1.4
    can any body help me on that??
    == gavin

    Search this forum on "wrap text in table cell" I got a ton of hits.
    Cheers
    DB

  • How to know the total string length of a range of cell in excel sheets

    Hi,
           I am working on Excel automation. I want to read data of collection of cells from excel for that i need to know the total string length in one shot.
    Can anyone suggest me the answer for this

    Still not sure about your requirements, but how about this
    SQL> CREATE OR REPLACE FUNCTION get_max_length(p_table in varchar2, p_col in varchar2) return pls_integer
      2  is
      3    v_cnt pls_integer;
      4  begin
      5    execute immediate 'select max(length('||p_col||')) from '||p_table into v_cnt;
      6    return v_cnt;
      7  end get_max_length;
      8  /
    Function created.
    SQL>
    SQL> SELECT COLUMN_NAME,
      2         DATA_LENGTH,
      3         get_max_length(TABLE_NAME, COLUMN_NAME) max_length
      4  FROM USER_TAB_COLUMNS
      5  WHERE TABLE_NAME='EMP'
      6  AND DATA_TYPE like '%CHAR%'
      7  ;
    COLUMN_NAME                    DATA_LENGTH MAX_LENGTH
    ENAME                                   10          6
    JOB                                      9          9
    SQL>

  • Colors in Excel Sheet

    I am using the type pools OLE2 to put colors in the Excel sheet.
    What is the property to fill color in the Excel sheet cell.
    Also I need to merge cells in the excel sheet.
    Can some one send me some sample code if you have?
    Please help.Its urgent.

    hi rowal,
    Hi Ashutosh...Use the below code i think it will be helpful
    This program demonstrates how to send abap data to excel sheet
    using OLE automation
    include ole2incl.
    *handles for OLE object
    data: h_excel type ole2_object, " Excel object
    h_mapl type ole2_object, " list of workbooks
    h_map type ole2_object, " workbook
    h_zl type ole2_object, " cell
    h_f type ole2_object. " font
    data: h type i.
    types: begin of t_bkpf,
    bukrs type bkpf-bukrs,
    belnr type bkpf-belnr,
    gjahr type bkpf-gjahr,
    blart type bkpf-blart,
    budat type bkpf-budat,
    end of t_bkpf.
    data: it_bkpf type standard table of t_bkpf,
    wa_bkpf type t_bkpf.
    ********start-of-selection*******************
    start-of-selection.
    select bukrs
    belnr
    gjahr
    blart
    budat into table it_bkpf
    from bkpf
    up to 10 rows.
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-001
    exceptions
    others = 1.
    Start excel
    create object h_excel 'EXCEL.APPLICATION'.
    perform err_hdl.
    set property of h_excel 'Visible' = 1.
    perform err_hdl.
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-002
    exceptions
    others = 1.
    call method of h_excel 'workbooks' = h_mapl.
    perform err_hdl.
    Add a new workbook
    call method of h_mapl 'Add' = h_map.
    perform err_hdl.
    call function 'SAPGUI_PROGRESS_INDICATOR'
    exporting
    PERCENTAGE = 0
    text = text-003
    exceptions
    others = 1.
    Output Column Headings to active excel sheet
    perform fill_cell using 1 1 1 text-004.
    perform fill_cell using 1 2 1 text-005.
    perform fill_cell using 1 3 1 text-006.
    perform fill_cell using 1 4 1 text-007.
    perform fill_cell using 1 5 1 text-008.
    Copy internal table to excel sheet
    loop at it_bkpf into wa_bkpf.
    h = sy-tabix + 1.
    perform fill_cell1 using h 1 0 wa_bkpf-bukrs.
    perform fill_cell2 using h 2 0 wa_bkpf-belnr.
    perform fill_cell1 using h 3 0 wa_bkpf-gjahr.
    perform fill_cell1 using h 4 0 wa_bkpf-blart.
    perform fill_cell1 using h 5 0 wa_bkpf-budat.
    endloop.
    disconnect from Excel
    free object h_excel.
    perform err_hdl.
    *& Form err_hdl
    text
    --> p1 text
    <-- p2 text
    form err_hdl .
    if sy-subrc <> 0.
    write: / 'Error in OLE Automation'.
    stop.
    endif.
    endform. " err_hdl
    *& Form fill_cell
    text
    -->P_1 text
    -->P_1 text
    -->P_1 text
    -->P_TEXT_004 text
    form fill_cell using i j bold val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    set property of h_f 'colorindex' = 10.
    endform. " fill_cell
    *& Form fill_cell1
    text
    -->P_H text
    -->P_1 text
    -->P_0 text
    -->P_WA_BKPF_BUKRS text
    form fill_cell1 using i j bold val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    endform. " fill_cell1
    *& Form fill_cell2
    text
    -->P_H text
    -->P_2 text
    -->P_0 text
    -->P_WA_BKPF_BELNR text
    form fill_cell2 using i j bold val.
    call method of h_excel 'Cells' = h_zl exporting #1 = i #2 = j.
    perform err_hdl.
    set property of h_zl 'Value' = val .
    perform err_hdl.
    get property of h_zl 'Font' = h_f.
    perform err_hdl.
    set property of h_f 'Bold' = bold .
    perform err_hdl.
    set property of h_f 'colorindex' = 13.
    endform. " fill_cell2
    hope the code will help you to solve the problem,
    reward points if usefull,
    Thanks ,
    kalyan.

  • Re:colors in Excel sheet (first row should be completely filled with yellow

    I am using the type pools OLE2 to put colors in the Excel sheet.
    What is the property to fill color in the Excel sheet cell.
    i got the text in colors but not the background...
    for example:
    i need the first row ie..the heading to be in yellow.
    Can some one send me some sample code .plz its urgent..........

    Hi,
    Check to see the following code:
     Sub Find_match()
        Dim Range1 As Range
        Dim Range2 As Range
        Set Range1 = Application.InputBox("Select the range on the first sheet to Compare", Type:=8)
        Set Range2 = Application.InputBox("Select the range on the second sheet to Compare", Type:=8)
    Dim range_row1 As Integer
    Dim range_row2 As Integer
    Dim loop_row1 As Integer
    Dim loop_row2 As Integer
    Dim find_value As String
    range_row1 = Range1.Rows.Count
    range_row2 = Range2.Rows.Count
    For loop_row1 = 1 To range_row1
        find_value = Range1.Cells(loop_row1, 1)
        For loop_row2 = 1 To range_row2
            If Range2.Cells(loop_row2, 1) = find_value Then
                If Range1.Cells(loop_row1, 2) = Range2.Cells(loop_row2, 2) Then
                    Range1.Rows(loop_row1).Interior.Color = vbYellow
                End If
            End If
        Next
    Next
    End Sub
    When the macro run, it will prompt to select the range in both sheet, the range is where the cells contain the data, it contains two columns.
    Jaynet Zhang
    TechNet Community Support
    Jaynet,
    Thank you so much. This is exactly how I wanted it to work. The only thing I wanted to know which I will try and figure out while I await your answer is if I can make this work between workbooks instead of worksheets? Currently, it does not allow me to switch
    workbooks when running the macro to select the second range. Thank you.

  • How to get the Last cell in HSSFCell (Excel sheet)

    Hello
    I am trying to convert an excel sheet to a tab limited file.
    I am using HSSF and unable to track how do i know if the cell encountered is a last filled cell in excel sheet
    Some of the cells in the sheet can be blank. In that case i am just using inputting a '\t' for that cell and read the next one. But coz of this when i get the last cell, a tab is included for that too.
    Can someone let me know how can i rectify this?
    it seems like HSSFCell does not have any methos like lastCell or so
    Thanx

    then use getLastCellNum() in org.apache.poi.hssf.usermodel.HSSFRow

  • How to export  the value  t.code me2s  to an excel sheet ?

    HI ,
           THIS IS  sandipan.  I am very  new in this field .  My requirement is when i am  going me2s . then i am giving   purchasing group ,  plant ,  Service  Number as input.  then it showing purchase doc . ,  item , porg , matl... ,  plant , crcy . It's ok. but after that when i am click  purchase order  it displays  Purchase order  for external  services  : overview  screen .  I need to export  this  screen value  to an excel sheet.    There is a option  system  .....>list .......> save ..........>local file.   but it is  in inactive mode. 
      how Is it possible ?  please answer me...
    Edited by: sandipan.sap on Feb 10, 2012 3:29 PM

    Hi
    U have to use Jxl  jar files(As suggested by previous reply ) in External DC Project, then only   u will able to work with data and property of excel files.
    Further ,take the help from following threads
    1.[Download Data to an excel sheet, with colours|Re: Download Data to an excel sheet, with colours;
    2.[Color cells in excel file|Re: Color cells in excel file;
    3.[Changing properties of only few selected cells in MS excel..??|Re: Changing properties of only few selected cells in MS excel..??;
    Best Regards
    Satish Kumar

  • COOIS export to excel sheet.

    Hello All,
    When i am trying to export output data from COOIS to EXCEL, I found data mismatch between COOIS report and downloaded EXCEL file.
    Please help me in this issue.
    Thanks in advance
    Pushparaj

    Hi Kishore,
    Use the following blog to export from web dynpro to excel sheet.
    http://wiki.sdn.sap.com/wiki/dosearchsite.action
    And, the data within the cell in excel sheet is not displaying the same value as it actually contains as the size of the number is large and the format is changed to fit the excel sheet column width as standard excel functionality. Try fixing the format of the excel sheet column through code (specific node attribute passed), but I am not sure how to do that.
    Regards,
    Tushar Sinha

  • Export Data to Excel sheet

    Hi Friends,
    Can anyone please let me know how to insert value into particular cell of Excel sheet.I can identify particular cell by column number AA,AB etc) and row number(98,99,100 etc). I am using sql developer.Is there any built in functions?

    Hello,
    have a look at Anton Scheffers as_xlsx package at http://technology.amis.nl/blog/10995/create-an-excel-file-with-plsql. You can create a worksheet and fill each cell using cell and row number. It should be easy to write a function that transposes the column letters to numbers.
    When you are finished you can write the file in Office 2007 format.
    Regards
    Marcus

  • Color to the header of the excel sheet which is downloaded from report

    Hi ,
    According to my requirement i need to Color to the header of the excel sheet which was getting downloaded from the report output.For the downloading to the excel i am using "EXCEL_OLE_STANDARD_DAT" function module.In the report output color is getting displayed.
    so suggest me how can i achieve this.
    Thanks in Advance,
    Kiranmai

    Hello,
    As far as I know, using EXCEL_OLE_STANDARD_DAT directly is not very flexible and it doesn't have any coloring options.
    However, if you use OLE manually in your code, you can get color.. check this sample program
    *& Report  ZKRIS_OLE3_PALETTE
    *& Displays the full OLE color range in excel
    REPORT  ZKRIS_OLE3_PALETTE.
    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.
    DATA: h_range       TYPE ole2_object.
    DATA: h_merge       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 = 3.
    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 = 9.
    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 = 3.
    DO 56 TIMES.
      PERFORM write_num_and_color.
    ENDDO.
    * autofit
    CALL METHOD OF excel 'Columns' = h_columns
      EXPORTING
        #1 = 'C:L'.
    GET PROPERTY OF h_columns 'EntireColumn' = h_entirecol.
    SET PROPERTY OF h_entirecol 'Autofit' = 1.
    * write palette on lhs
    *range
    CALL METHOD OF excel 'Range' = h_range
      EXPORTING
        #1 = 'A2'
        #2 = 'A20'.
    CALL METHOD OF h_range 'Merge' = h_merge .
    CALL METHOD OF excel 'Cells' = h_cell
      EXPORTING
        #1 = 2
        #2 = 1.
    SET PROPERTY OF h_cell 'Value' = 'Palette'.
    SET PROPERTY OF h_cell 'Orientation' = 90.         "angled.
    SET PROPERTY OF h_cell 'HorizontalAlignment' = 3.  "center align
    GET PROPERTY OF h_cell 'Font'    = h_f.
    SET PROPERTY OF h_f 'Bold' = 1.                    "bold
    SET PROPERTY OF h_f 'Name' = 'Comic Sans MS'.
    SET PROPERTY OF h_f 'Size' = '14'.
    SET PROPERTY OF h_cell 'VerticalAlignment' = 2.  "center align
    * autofit
    CALL METHOD OF excel 'Columns' = h_columns
      EXPORTING
        #1 = 'A:A'.
    GET PROPERTY OF h_columns 'EntireColumn' = h_entirecol.
    SET PROPERTY OF h_columns 'ColumnWidth' = 4.
    *&      Form  write_num_and_color
    *       text
    FORM write_num_and_color.
      index = row_max * ( row - 1 ) + col.
      CALL METHOD OF sheet 'Cells' = cells
        EXPORTING
          #1 = index.
      SET PROPERTY OF cells 'Value' = count_real.
      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.
      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.
      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

Maybe you are looking for

  • How can I read a text on Image by using IMAQ vission tool

    I would like to read a text on the image file by IMAQ vission tool.

  • How do i kick other devices off my time capsule?

    I'm using a Macbook Pro running 10.8.4 and i have a 2tb time capsule. Under Airport ultility under wireless clients i see someone else's laptop that i don't want connect. How can i just put a block on their computer?

  • Error installing interim patches - Oracle 10 - 10.2.0.4.0

    Hi experts! We are currently installing an ERP 6.0 system on SOLARIS 10. After installing Oracle 10.2.0.4.0 and respective patch set, the follpwing error is obtained while trying to install interim patches. Actually the first one was installed withou

  • New Nano problems

    First of all my ipod nano 4Gb 2G will reset itself after a certain amount of time of staying on. It is fully charged and everything. Second thing is that everytime i plug my ipod in there is a message that says "iTunes cannot read the contents of the

  • User Exits for  PP

    Dear All, Can  any one please provide me the list of user exits availble in PP Module, and their functions . Rgds, Vijay Mankar