Rename of sheet with Jexcelapi

Hello friends,
How to change name of sheet with Jexcel api .
please give suggestion .
Thanks .

Maybe u can use
public void setName(java.lang.String name)in WritableSheet interface..

Similar Messages

  • Excel 2013 (or 2010) wont recover/repair excel files with sheets with invalid names

    Hi All
    I have a situation where some legacy software (Crystal Reports) have exported to Excel some problematic workbooks in .xls (in 5.0/95) format. These workbooks have an invalid worksheet name which I have discovered is a known problem with Legacy
    Crystal Reports.
    In Office 2003 the error I get is:
    "Errors were detected in 'example.xls'" but Microsoft Office Excel was able to open the file by makling the repairs listed below. renamed invalid sheet name".
    That's fine because the spreadsheet then opens with the worksheet renamed to "Recovered_Sheet1" and all the expected data inside.
    The problem arises because we have 2013 (not 2003). in 2013 I get:
    "We found a problem with some content in 'example.xls'. Do you want to try and recover as much as we can? If you trust the source of this workbook click Yes"
    If I click yes then the I get:
    "Excel was unable to open the file by repairing or removing the unreadable content. Excel recovered your formulas and cell values, but some data may have been lost."
    I then get a workbook with 2 sheets (unknownsheet1 and unknownsheet2) and there is no data. The issue would be no problem if 2013 could recover the data.
    Is there a way in which I can get 2013 to open/recover these workbooks like 2003 manages to do? To test I have turned off all trust centre features etc. Failing that, could I use powershell or something else to get into a closed excel file and rename the
    worksheet?
    Any suggestions would be greatly appreciated
    Thanks
    Thomas

    Hi,
    As you said the Microsoft Excel 5.0/95 Workbook format file is a very old format, it might be has some unexpected compatibility issues with new Excel version. I recommend you convert the Microsoft Excel 5.0/95 Workbook to a new Excel format, like XLSX.
    As a workaround, please try to copy the data from Excel 2003 to a Excel 2013/2010 file. It would help us using there data.
    Then, based on the error message, we might try the below method:
    Install the Visual Basic component in Office 2013/2010
    Control Panel > Programs > select Microsoft Office 2013/2010 and click on Change > Add or Remove Programs > at the bottom of the list click on the plus next to Office Shared Features > select Visual Basic for Applications > I right
    clicked and chose Run from My computer > Continue
    Similar issue:
    https://social.technet.microsoft.com/Forums/office/en-US/f8abedda-619e-4f9d-97a5-fba2fcacd8c2/excel-found-unreadable-content-in-filenamexls-do-you-want-to-recover-the-contents-of-this?forum=excel
    http://answers.microsoft.com/en-us/office/forum/office_2007-excel/excel-found-unreadable-content-in-xls-do-you-want/5bc64db0-e4d6-44d8-9409-c6035da6033e
    Hope it's helpful.
    Regards,
    George Zhao
    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.

  • 1 sheet with multiple pages will not show various page numbers

    I'm having a difficult time differentiating between pages and sheets in Numbers. For example, I have 1 sheet with 5 pages. I am inserting page numbers (done, re-done several times after looking through the forum), but each page will not print with a sequential number (ie. 1, 2, 3, 4, 5). Instead, each page is 1. When I scroll over the number "1" on, say, page 3, the number 3 shows up. But unfortunately t will not print with anything but page number 1.

    I am having a problem that is close to this, when I try and preview my site in browser some of the pages show up as a white and gray blocks only.  I can not seem to find any reason or connection to what pages are doing this.  The only page that has a video seems to work fine.  Its almost acting like the links are broken or something.  Any help would be welcomed.
    Thanks
    Mike

  • Excel sheet with multiple tabs to be sent as email

    Hi Experts,
    I have a requirement to generate an Excel sheet with multiple tabs to be sent as email to a distribution list.
    Please help if you have any ideas on the same.
    Thanks,
    Preema

    [http://wiki.sdn.sap.com/wiki/display/ABAP/ToGetFieldDetailsSavedinVariantLayout|http://wiki.sdn.sap.com/wiki/display/ABAP/ToGetFieldDetailsSavedinVariantLayout]
    with this we can get the modified field catalog  based on layout variant
    without calling alv output function modules
    Thanks!   SDN.

  • Excel sheet with tabs

    Hi all,
    I have an excel sheet with 2 spread sheets. 1 hidden and other visible.
    1) How to read the excel so that the hidden fields dont come into the internal table in which the data is read?
    2) when the data is read from the visible tab of the excel sheet, data from hidden tab is also getting added in the internal table.
    How to avoid it?
    Useful answers will be rewarded with points.
    please help!!!

    Hi,
    If you have 2 tabs in your excel sheet. Open one tab which you want to process save it. Now it should be process active tab only.
    thanks,
    Sriram.

  • Excel Sheet with WBS

    Hi ,
    i have attached an excel sheet with wbs after that when i change contents or write something and when i saved it the sheet is not changing . i have unprotectd the sheed ,
    can anybody clear me what is the problem
    Thanks in advance
    Regards
    Rama Shanker Sharma

    Hi,
    Would you please share your experience to solve this problem?
    Recently, we got the same problem.
    Thanks ahead,
    Ecco

  • How can i create  excel sheet with multiple tabs using utl file?

    how can i create excel sheet with multiple tabs using utl file?
    any one help me?

    Jaggy,
    I gave you the most suitable answer on your own thread yesterday
    Re: How to Generating Excel workbook with multiple worksheets

  • How do I import old FCP projects that have mysteriously changed to Linux Executable files?  Is it as simple as renaming the files with the.fcp extension?

    I had some FCP projects on an old G3 tower that I finally want to finish. I was able to grab everything, media, etc. to my macbook pro but all of the Final Cut Pro actual movies/projects have turned into "linux executable files" that FCP X won't import.
    I tried googling this issue but didn't really see any good answers. Would it be as simple as renaming the files with the .fcp extension?  I can't recall if my old version (really old) of FCP saves projects as .mov or .fcp files, but I'm assuming I'm not the only person this has happened to.
    Thanks for your help!

    I had some FCP projects on an old G3 tower that I finally want to finish.
    What version of FCP was this? The project files can probably no longer be opened in the newer version of the OS. You could try adding the .fcp suffix, but I don't think it will help for this. Projects files are .fcp.
    Regardless of the version, no legacy FCP projects will import into FCPX.
    Media is a different matter. These are probably QuickTime .mov files. If these are appearing as Unix ececutables, they're probably not recoverable either.

  • Creation of a simple custom fact sheet with assignment block

    Dear CRM Gurus,
    i need to create a custom fact sheet with a assignment block and link for that has to be given in a navigation bar . once if I click on  that navigation bar the custom fact sheet has to be displayed. am relatively very new to crm. kindly help me in this aspect.

    Hi Thomas,
    " By default, the Collect Signatures workflow is associated with the Document content type and it is thus automatically available in document libraries for documents or workbooks that contain Microsoft Office Signature Lines. "
    It doesn't work for a custom list which cannot be added with the document content type, please see more information from below,
    http://office.microsoft.com/en-us/sharepoint-server-help/use-a-collect-signatures-workflow-HA010154428.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • Application server file to excel sheet with .csv format

    I am having comma seperated file in the application server, now i want that my program should pick the file from application server and store it in the excel sheet with .CSV extension

    Use the OPEN DATASET and READ DATASET statements to read from the file on application server and the function module GUI_DOWNLOAD to save it on the local system.
    Manoj

  • How to download the pivot view to the excel sheet with all features

    Hi,
    Using discoverer, my co-worker is able to download the pivot view to excel sheet with all enabled features, like pivot table in excel.
    Is this can be done in obiee? if this feature is present in obiee, plz will you explain me how to do in obiee? its urgent.
    Thanks,

    Hi abc,
    I don't think BI office plug-in supports you the pivot table features of MS Excel.
    Even if you import a pivot table from BI, it is rather treated just as a table in Excel
    Regards,
    Raghu

  • Renaming a Swatch with a script

    I was wondering if it is possible to rename a swatch with a script. In an open document I would like the script to run and do the following:
    If swatch Pantone 032 is in the document change the swatch name to 032 (Red).
    If swatch Pantone 577 is in the document change the swatch name to 577 (Drain).
    I have a list of 35 swatches that if they are in the document I need them renamed.
    Anyone offer some help?
    Thanks to the community for offering support to guys that struggle with or have no background in coding!

    I have done the exact same process as what you are looking for. I got this working:
    var SW = app.activeDocument.swatches;
    if (SW.length > 0) {
        for (i=0; i < SW.length; i++){   
            changeName(SW[i]);
    function changeName(swatchObject){
                    if (swatchObject.name == "10 YELLOW"){                       
                        swatchObject.name = "10 yellow";
                    if (swatchObject.name == "12 YELLOW"){                       
                        swatchObject.name = "12 yellow";
    In this instance, it changed 10 YELLOW and 12 YELLOW to a lowercase name. You would need to go in and type in a conditional statement for each swatch you are wanting to rename.
    When the script is ran, it doesnt appear to update the swatch name. However, if you double click on one of the swatches, the name that is showed will be the changed value, and when you hit cancle on that pop-up dialogue, all the others will switch to the new name.
    Anybody know if there is a way to update the swatch palette within the script to show the new names automatically?

  • Excel 2013 (pro plus) extermely slow with sheets with more than 100 checkboxes

    I have a customer with Excel 2013 (pro plus).
    They use sheets with more than 100 checkboxes in it.
    The sheet is extremly slow to display. When a user starts scrolling down, the checkboxes appear very slowly, one by one.
    It happens with all users, on both x86 and 64bits Windows 8 PC's and Office clients (32b & 64b).
    Anyone any idea?

    Hi R.Nieraeth,
    Could you please let us know what exactly these checkbox was used for ? Any formulas depend on these checkbox? Or any VBA code in this excel file? If so, you may need to check your formulas or the VBA code.
    In addition,does this issue happen only on excel 2013? You can try to disable hardware graphics acceleration: Click
    File, and then click Options. In the Advanced group, click to select the
    Disable hardware graphics acceleration check box. Click ok.
    Also please check if the following thread is helpful:
    http://social.technet.microsoft.com/Forums/en-US/a9a257fa-ce8b-4399-860c-563022b8714f/checkbox-bug-in-excel-2010-slow-response?forum=excel

  • Generation of balance sheet with closing exchange rate

    Hi all
    We have been using INR as the local currency and USD as the functional currency
    all the reports are generated in INR and USD.
    And  as of now monthly average rate is been entered in the exchange rate table master.
    But for audit purpose we need to generate balance sheet with the closing rate. how can we do the same in sap business one
    Regards
    Farheen

    Hi,
    Just use "Conversion Differences" function in Financials Module, this will convert INR into USD by posting adjustment JE.
    This function is relevant for companies whose defined system currency is different from the local currency. SAP Business One recommends making journal entries automatically for differences in system currency. Use the Conversion Differences function to make adjustments between the account/business partner balance in the system currency and the balance in the local currency.
    Hope this helps,
    TVSon

  • I want to download a report into Excel sheet with color Heading..Is it Poss

    Hi All
    I want to download error records into Excel sheet with color Heading..Is it Possible to download into excel with Color Heading?
    here i am <b>using the 3 sheets in one</b>
    t_error-bkpf -> Sheet1
    t_error-bseg-> sheet 2
    t-error-bsec -> sheet3.
    Rgds
    Raghav

    <b>The following thread has the code which will put data into multiple sheets</b>
    Download to multiple sheets in Excel
    FOR COLOR LOGIC  JUST REFER THIS PROGRAM
    *& Report  ZNEGI17                                                     *
    REPORT  ZNEGI17  NO STANDARD PAGE HEADING.
    * this report demonstrates how to send some ABAP data to an
    * EXCEL sheet using OLE automation.
    INCLUDE OLE2INCL.
    * handles for OLE objects
    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
    TABLES: SPFLI.
    DATA H TYPE I.
    * table of flights
    DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
    *& Event START-OF-SELECTION
    START-OF-SELECTION.
    * read flights
    SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
    * display header
    ULINE (61).
    WRITE: / SY-VLINE NO-GAP,
    (3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
    (4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
    (20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
    (20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
    (8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
    ULINE /(61).
    * display flights
    LOOP AT IT_SPFLI.
    WRITE: / SY-VLINE NO-GAP,
    IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
    IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
    IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
    IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
    IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
    ENDLOOP.
    ULINE /(61).
    * tell user what is going on
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
    * PERCENTAGE = 0
    TEXT = TEXT-007
    EXCEPTIONS
    OTHERS = 1.
    * start Excel
    CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
    * PERFORM ERR_HDL.
    SET PROPERTY OF H_EXCEL 'Visible' = 1.
    * CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:kis_excel.xls'
    * PERFORM ERR_HDL.
    * tell user what is going on
    CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
    * PERCENTAGE = 0
    TEXT = TEXT-008
    EXCEPTIONS
    OTHERS = 1.
    * get list of workbooks, initially empty
    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.
    * tell user what is going on
    * CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    * EXPORTING
    ** PERCENTAGE = 0
    * TEXT = TEXT-009
    * EXCEPTIONS
    * OTHERS = 1.
    * output column headings to active Excel sheet
    PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
    PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
    PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
    PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
    PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
    LOOP AT IT_SPFLI.
    * copy flights to active EXCEL sheet
    H = SY-TABIX + 1.
    PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
    PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
    PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
    PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
    PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
    ENDLOOP.
    * changes by Kishore - start
    * CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
    CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
    PERFORM ERR_HDL.
    * add a new workbook
    CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
    PERFORM ERR_HDL.
    * tell user what is going on
    SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
    * CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    * EXPORTING
    ** PERCENTAGE = 0
    * TEXT = TEXT-009
    * EXCEPTIONS
    * OTHERS = 1.
    * output column headings to active Excel sheet
    PERFORM FILL_CELL1 USING 1 1 1 'Flug'(001).
    PERFORM FILL_CELL1 USING 1 2 0 'Nr'(002).
    PERFORM FILL_CELL1 USING 1 3 1 'Von'(003).
    PERFORM FILL_CELL1 USING 1 4 1 'Nach'(004).
    PERFORM FILL_CELL1 USING 1 5 1 'Zeit'(005).
    LOOP AT IT_SPFLI.
    * copy flights to active EXCEL sheet
    H = SY-TABIX + 1.
    PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
    PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
    PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
    PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
    PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
    ENDLOOP.
    * changes by Kishore - end
    * disconnect from Excel
    * CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:SKV.XLS'.
    FREE OBJECT H_EXCEL.
    PERFORM ERR_HDL.
    * FORM FILL_CELL *
    * sets cell at coordinates i,j to value val boldtype bold *
    FORM FILL_CELL1 USING I J BOLD VAL.
    data : color(5) type x value 'H80000008'.
    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' = 3 .
    PERFORM ERR_HDL.
    ENDFORM.
    *& Form ERR_HDL
    * outputs OLE error if any *
    * --> p1 text
    * <-- p2 text
    FORM ERR_HDL.
    IF SY-SUBRC <> 0.
    WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
    STOP.
    ENDIF.
    ENDFORM. " ERR_HDL
    *&      Form  FILL_CELL1
    *       text
    *      -->P_H  text
    *      -->P_1      text
    *      -->P_0      text
    *      -->P_IT_SPFLI_CARRID  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.
    endform.                    " FILL_CELL1
    kishan negi

Maybe you are looking for

  • Help on JRadioButton event

    While i was searching for a code sample for getting the selected radio button, I have found following method I have following method that returns selected radio button of a group.     public static JRadioButton getSelection(ButtonGroup group) {      

  • Smartform Borders

    Hi Friends, In Smartform main window i'm using tables. Now my problem is that the framed pattern is working but lower/upper/right/left frame is not working. in individual table cells also I've give lower frame but it's not working. Thanks & Regards,

  • MacBook Air 13" i7 processor 2.0 GHz, 8 GB, 512 GB SSD Z0ND000M4 Help me

    1.MacBook Air 13" i7 processor 2.0 GHz, 8 GB, 512 GB SSD Z0ND000M4 Work with the programs of music creation and audio processing such as Ableton Suite, Cubase, Sound Forge, ProTools, Logic Pro and vst plug-ins? 2. If you use the adapter adapter APPLE

  • Cost Assignment

    Hi, I haveconfigured a cost assignment for "finance and funds" i.e. Cost Center (W/GR) in both ecc and srm..but when i try to create a shopping cart for this cost assignment i'm getting an error "enter material or account assignment category". please

  • =?iso-8859-1?Q?=5BPDF=5D_=EDndices?=

    Estoy haciendo un manual con freehand y el clientes me pide un índice del pdf y que la páginas tengan nombre y eso... como se hace?