Cells Ms. Excel ?

I have the necessity to execute a relationship in Ms. excell, using an existing module heading for defined cells of the sheet, you can help me

Hello All,
Thanks @Jari and @Anton for your prompt replies. Though you replies didn't answer my question fully, they definitely helped me.
Finally found a excel macro based solution using Oracle Objects for OLE (OO4O) :
{thread:id=2271679}
on the forum
{forum:id=147}
Following is macro code just in case someone wants to know:
Private Sub CommandButton1_Click()
Dim OraDatabase As Object
Dim OraSession As Object
Dim lngRow As Long
Dim strFIELD1 As String
Dim strFIELD2 As String
Set OraSession = CreateObject("OracleInProcServer.XOraSession")
Set OraDatabase = OraSession.OpenDatabase("oracle_service_name", "schemaname/password", 0)
OraDatabase.Parameters.Add "FIELD1", "", 1
OraDatabase.Parameters.Add "FIELD2", "", 1
strFIELD1 = Range("B2").Value
strFIELD2 = Range("B3").Value
With OraDatabase
.Parameters("FIELD1").Value = strFIELD1
.Parameters("FIELD2").Value = strFIELD2
.ExecuteSQL "INSERT INTO ETO_TARGET(COMPANY_NAME,COMPANY_DESC) VALUES(:FIELD1,:FIELD2)"
End With
OraDatabase.Close
Set OraDynaset = Nothing
Set OraDatabase = Nothing
Set OraSession = Nothing
End SubReferences:
http://www.orafaq.com/wiki/OO4O_FAQ
Regards,
Kiran

Similar Messages

  • How to download data into one cell of excel in different lines

    Hi All,
    My Report downloads data from R/3 to excel. Now one particular field contains multiple lines, which i needs to download into different lines into that particular cell(of excel). how can i do this.
    I found one method for this and that is cl_abap_char_utilities=>newline.But this is in abap version 6.0.
    But i am working in version 4.6c. do we have any method or anything that meets my requirement in 4.6c.
    Please let me know.
    Thanx in Advance
    Subhani.

    why do you split them to the internal table ,then download it?
    Is you special field long text?
    If is ,you can use FM READ_TEXT to put it into an internal table ,then download it.

  • How to Update a particular cell in Excel with its specific cell Name?

    {color:#000080}Hi,
    I have connected my Java program to Excel using JDBC ODBC connection and also I am able to read/write data to Excel currently.
    In my write code, I have updated the data in particular Excel cells by using conditions in "where" clause.
    Example:
    String $mcode="hello";
    double da1 = Double.parseDouble(txtda1.getText());
    st.executeUpdate("insert into [Sheet4$] values (' " +$mcode+ " ')");
    st.executeUpdate("Update [Sheet4$] set Lot1="+da1+" where Lot1='"+$mcode+"'");
    But I would like to refer to the individual excel cells by their cell name instead of like the above said one.
    In whatever I saw, third party tools were used to refer to the excels cells by their name. But I have to refer to in an ordinary way.
    It would be great if somebody could help me in referring to Excel cells by their name.
    Thanks in advance!{color}

    I don't think it is possible to refer to cell in excel using jdbc, since jdbc is intended to communicate with mostly database in generic way. So you have to use queryStrings to update or retive cell info.
    The only way to access them by cell name is possibly by using some third party tools.

  • Xcelsius and relative cell in Excel from another document

    Hi, gurus.
    I have one question about Xcelsius opportunities. Can I use relative cells in Excel document, which as links to cell in another excel document. For example I have two Excel document. At first I use relative cell like this "='\job\[test_1.xlsx]List1'!$C$6",  after them I imported file with  this link to Xcelsius and I can see value from another document, when I work with Xcelsius only. When I view my result or exported in swf - I see that this value become 0, like empty cell.
    Can I use relative cells in Xcelsius or it is them  limitation?
    Thanks in advance, Ruslan.
    Edited by: Ruslan Latypov on Aug 10, 2011 11:15 AM

    Thank you. I think so too. But I have no confirmation...
    And I think this limit like limit for work with Excel  Macros,  because If we  may use macros in another document, with work opportunity with relative cells we can get data with VBA scripts computing.

  • How to change width of cell in Excel using LabVIEW 5.1

    Enable program to change width of cell in Excel 97 file using LabVIEW 5.1.

    You must have an automation reference to the workbook or the worksheet. Using Application Control pallette find the Property and Invode nodes and wire up the following, cascading the output of each node into the reference of the next:
    Start with worksheet reference
    Invoke Range
    Property Entirecolumn
    Property Columnwidth
    Change Columnwidth to write and wire in the numeric value in pixels.
    Michael
    [email protected]
    http://www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • 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>

  • How to merge cells in excel using X++ in AX 2009

     Hi all,
     How to merge cells in excel using X++ in AX 2009?
     for example i have 3 cells (A3:C3) i need to merge this 3 cells using X++
    can any one sujjest please
    Thanks in advance

    Hi,
    WinForm technology does not support X++ related cases.
    I just checked this link
    http://msdn.microsoft.com/en-us/library/aa867122.aspx and haven't found a related forum.
    I'll move your case to where is the forum for so that you may get some help about this.
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a problem in formatting cells in Excel while using OLE method.

    Hi All,
    I have a problem in formatting cells in Excel while using OLE method.
    My requirement is to have certain fields of a cell as text and amount fields should be in number format.
    How to format a cell in Excel in OLE method of downloading data to excel.
    For example I have plant field whose value is 0002 in internal table while coming to excel it is showing as 2 .
    I want that field to be shown as 0002.(text format)
    Material field whose value in internal table is 000000000000000051 is shown as 51 which has to be shown as
    000000000000000051.(text format).
    Amount field should be in number format so that totalling is possible .
    So I need some cells in text format and some in number format.
    Please suggest a sloution.
    Thanks in advance,
    Regards,
    vidyulatha.U

    https://forums.sdn.sap.com/click.jspa?searchID=21931962&messageID=6852860
    hope this helps.

  • Background color of the cell in EXCEL not working....Pls help..

    Hi gurus,
    I have written a procedure to change the background color of the cell in EXCEL.The code is as below..
    PROCEDURE set_header     (p_row IN NUMBER, p_col IN NUMBER, p_value IN VARCHAR2, p_border IN VARCHAR2 DEFAULT 'N',p_bgcolor IN VARCHAR2 DEFAULT 'N') IS
    BEGIN
         v_args     := ole2.create_arglist;
         ole2.add_arg(v_args, p_row);
         ole2.add_arg(v_args, p_col);
         v_cell     := ole2.get_obj_property(v_worksheet, 'cells', v_args);
         v_font     := ole2.get_obj_property(v_cell, 'font');
         ole2.set_property(v_font, 'fontstyle', 'bold');
         ole2.set_property(v_font, 'size', 9);
         ole2.destroy_arglist(v_args);
         if p_border = 'Y' THEN
              v_border := ole2.get_obj_property(v_cell, 'Borders');
              ole2.set_property(v_border, 'LineStyle', 1);
              ole2.release_obj(v_border);
         End If;
         if p_bgcolor ='Y' THEN
              v_bgcolor := ole2.get_obj_property(v_cell,'Bgcolor'); --This is not woking
              ole2.set_property(v_bgcolor,'bgcolor','red');
              ole2.release_obj(v_bgcolor);
         End If;
              ole2.set_property(v_cell, 'value', p_value);
              ole2.release_obj(v_cell);
         END set_header;
    Pls tell me how to change the backcolor and forecolor in the cell...
    Thanks

    The background color is set for the "Interior" object of the selected cells (Range).
    Try something like this (haven't tested it):
    v_interior := ole2.get_obj_property(v_cell,'Interior');
    ole2.set_property(v_interior,'ColorIndex',3); --should be red
    ole2.release_obj(v_interior);
    If the Foreground color = Font Color then
    ole2.set_property(v_font,'ColorIndex',6); --should be yellow
    Gerald

  • 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

  • When i paste some copied color text or formatted cells from excel to my mail draft while composing a mail, it is being pasted as plain text. No back groud or text colors are copied to it. Please suggest a possible solution for this issue.

    Colors & Formatted Cells from Excel application can not be copied to my mail composer as it is. Only Plain text is copied.

    Wish I could be king. But you described the problem perfectly and I am still but a pawn. All I can say is that I trashed the mail preferences (com.apple.mail.plist) on my Mac Mini, and now my MacBook seems to work right.
    Sorry. :>) But that is the truth... The MacBook now has actually sometimes displayed pasted text in its actual, different, font and style as I paste it into a partially composed new mail message.
    In other (more rational) words, the problem seems to be tied to pasting only certain types of text. I have not been able yet to pinpoint what. Yes, frustrating indeed. The only work-around has been to re-train my fingers to command-option-shift V, for "paste and match style" (like you, I do not want to always use only plain text). Maybe someone else will eventually weigh in with a real solution. The solution I want is just to be able to consistently see any font variations within my message before I send the email.
    The info about the different ppi scales between Windows and Mac is interesting, although not relevant to this particular problem. It does explain the apparent overall size differences I have seen before.

  • Reading Cells in Excel using Webutil

    Has any one read the value of each cell in Excel using Webutil ?
    And where can i get Properties/methods of CLIENT_OLE2 / OLE2 .
    Thanks

    Hi,
    I also need to read images into excel using java. I tried JExcel
    but it could not handle images. I store my images in the database with
    blob datatype.
    Thanks.

  • Report generation: Using only bottom border cell in Excel

    I'm trying to write a report to Excel. for each 2 rows I want the cells to have a bottom border.
    With the VI " Excel set Cell Color and Border VI" I have 2 options, using inside border and outside border.
    Outside border seems to be the top and bottom border. However , I can only put them both on and off, I can't use them seperatly.
    Is there a way of telling this VI that I only want to have a bottom border?
    Idealy I would like to select a cellstyle like one can do in Excel:

    Hello kev91,
    Can you give me some more information about the software versions you're using?
    Is this LabVIEW 2012?
    Which version of Excel are you using?
    Can you share an example of how the final Excel-file should look like?
    It would also be useful to see what you already have written in LabVIEW so that we can just change/modify that code.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Multiple lines in a cell in excel download

    Hi,
    I have used insert_full of i_oi_spreadsheet interface for downloading internal table.. i have a text field which i need to display in multiple lines in one cell.
    Is that possible? Please help,
    Regards,
    Rohit.

    Rohit,
    Clipboard this code into your editor and see if it helps you out.  Please reward points.
    *& Report  ZR_SANDBOX_PROG
    REPORT Zsandbox_prog .
    INCLUDE OLE2INCL.
    DATA: hExcel TYPE OLE2_OBJECT,      " Excel object
          hWorkBooks TYPE OLE2_OBJECT,  " list of workbooks
          hWorkbook TYPE OLE2_OBJECT,   " workbook
          hSheet TYPE OLE2_OBJECT,      " worksheet object
          hRange TYPE OLE2_OBJECT,      " range object
          hRange2 TYPE OLE2_OBJECT,      " range object
          hBorders TYPE OLE2_OBJECT,    " Border object
          hInterior TYPE OLE2_OBJECT,   " interior object - for coloring
          hColumn TYPE OLE2_OBJECT,     "column
          hCell TYPE OLE2_OBJECT,       " cell
          hFont TYPE OLE2_OBJECT,       " font
          hSelected TYPE OLE2_OBJECT,   " range object
          hPicture TYPE OLE2_OBJECT,    "picture object
          hLogo TYPE OLE2_OBJECT.       "Logo object
    types:  begin of t_Excel,
              Period_Literal(20),
              Pd_Wk_Literal(20),
              Coop_Literal(40),
              Sugg_Price(20),
              Cost(20),
              Margin(20),
              Comments(100),
            end of t_Excel.
    data: r_Excel type t_Excel.
    data: i_Excel type table of t_Excel with header line.
    field-symbols: <Val> type any.
    data: col_Cnt type i.
    data: row_Cnt type i.
    data: l_range(30).
      parameters: wraptext as checkbox.
      CREATE OBJECT hExcel 'EXCEL.APPLICATION'.
      PERFORM ERR_HDL.
    get list of workbooks, initially empty
      CALL METHOD OF hExcel 'Workbooks' = hWorkbooks.
      PERFORM ERR_HDL.
    add a new workbook
      CALL METHOD OF hWorkbooks 'Add' = hWorkbook.
      PERFORM ERR_HDL.
    Get Worksheet object.
      get property of hWorkbook 'ActiveSheet' = hSheet.
      SET PROPERTY OF hExcel  'Visible' = 1.
      row_cnt = 1.  col_cnt = 1.
      do 5 times.
        Perform Load_Dummy_Values.
      enddo.
    *Pass the internal table values to the spreadsheet.
      loop at i_Excel into r_Excel.
        do 7 times.
          assign component sy-index of STRUCTURE r_excel TO <Val>.
          PERFORM Fill_The_Cell USING row_cnt col_cnt 0 <Val>.
          col_cnt = col_cnt + 1.      "increment column
        enddo.
        row_cnt =   row_cnt + 1.    "increment row
        col_cnt = 1.                  "reset column to A (ie. col 1)
      endloop.
      if not WrapText is initial.
        move 'G:G' to l_range.
        CALL METHOD OF hExcel 'RANGE' = hRange EXPORTING #1 = l_range.
        set property of hRange 'WrapText' = 1.
      endif.
    Release excel.
      FREE OBJECT hExcel.
      PERFORM ERR_HDL.
    FORM Fill_The_Cell USING I J BOLD TheValue.
      CALL METHOD OF hExcel 'Cells' = hCell EXPORTING #1 = I #2 = J.
      PERFORM ERR_HDL.
      SET PROPERTY OF hCell 'Value' = TheValue.
      PERFORM ERR_HDL.
      GET PROPERTY OF hCell 'Font' = hFont.
      PERFORM ERR_HDL.
      SET PROPERTY OF hFont 'Bold' = BOLD.
      PERFORM ERR_HDL.
    ENDFORM.
    *&      Form  ERR_HDL
          outputs OLE error if any
    -->  p1        text
    <--  p2        text
    FORM ERR_HDL.
      IF SY-SUBRC <> 0.
        message i000(zz) with 'OLE Automation error: ' SY-SUBRC.
        exit.
      ENDIF.
    ENDFORM.                    " ERR_HDL
    Form Load_Dummy_Values.
      r_excel-Period_Literal = 'Period 1'.
      r_excel-Pd_Wk_Literal = 'P1 / Wk1'.
      r_excel-Coop_Literal = 'Promo Event'.
      r_excel-Sugg_Price = '$ 1.25'.
      r_excel-Cost  = '$ 0.50'.
      r_excel-Comments =
       'This is a really long field with one hundred bytes to it.'.
      append r_excel to i_Excel.
    EndForm.

  • Insert subtotals in blank cells in Excel

    I just completed a complicated exercise where I expanded upon an existing table using VLOOKUP.  My next step was to insert subtotals in each of the new columns of the modified table.  But, the original subtotals in the original table
    were text, not formulas.   So, I had to insert new subtotal formulas in each cluster of the table.  This was time-consuming, because each grouping contained a different number of rows.
    Q:  How could I have instructed Excel to insert subtotals quickly for each set of rows in the new table, without having to enter a new range of cells in each formula?  The subtotals would have to land in the blank cells underneath each cluster
    of data.
    Doug in York PA
    Douglas R. Eckert

    I'm not quit sure what's your table looks like.
    If you want to excel insert a formula to the blank cells under each cluster of data. You may need to use VBA code to achieve that, otherwise I don't think excel will be so smart that can insert formula automatically.
    And how is it time consuming to enter the formula? since you have said they are all formatted as table, you can take advantage of the column names in the formula.
    Maybe you can share your file with us, meanwhile if you hope to find some VBA code to achieve it, you can post your question to the forum for Excel Developer:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Best Regards,
    Wind

  • Blank Cells in Excel until highlighted

    Hi,
    I have an Excel document with a lot of formulas and so on, intermittently, the cells when i scroll down for instance some cells are blank, not all, just a random few. They have either formulas in or an actual value, when i select them i can see the contents
    in the formula bar at the top but not in the cell. If I highlight a number of cells, not just a single cell, it then shows what it is supposed to show. Then later on it will happen to another bunch of cells. The only consistency is that the value or the sum
    of the formula equals zero in every cell it happens to, it does not happen to a cell with a number above zero in.

    Hi,
    Since you want to highlight blank cells, you can apply conditional formatting > Highlight Cells Rules.
    For more reference about Conditional Formatting:
    http://office.microsoft.com/en-001/excel-help/quick-start-apply-conditional-formatting-HA010370614.aspx
    http://office.microsoft.com/en-001/excel-help/use-a-formula-to-apply-conditional-formatting-HA102809768.aspx
    Regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

Maybe you are looking for

  • Can't delete attachments in mac mail

    On the mac mail I used to be able to select a mail, then press "Command" button and "M" to delete an attachment (without deleting the whole e-mail, just delete the attachment). But right now, when I try to delete attachments in some e-mails by pressi

  • How do i transfer files from my ipod to itunes?

    my computer crashed recently, but before it did i was able to save a number of uncorrupted media files on my ipod (some of my favorite albums in fact...). i installed a new hard drive and reinstalled itunes...but now i can't seem to get the music fro

  • Camera connection

    I understand that the camera connection can read photos and videos from a flash drive formatted as ms dos. What about documents? Is that possible?

  • Foreign JMS destination type

    Hi. Is there any MBeanAPI for me to find out the type of a foreign JMS destination (whether is a queue or a topic)? Thanks!

  • Songs added to iTunes not showing up properly.

    I recently added an entire album to my itunes library, but they do not show up anywhere but in the Songs list. The artist does not display under Artist, nor under Recently Added Playlist either. Also, the album does not show up under Albums. When I s