Opening new excel file from available Template-Urgent

Hi Friends,
I have the functionality like this. I have one excel template. In that i am getting two text files(header and row values) and filling it on the excel file. After that i am doing operation on it. These things i have succeded already. The problem is i am opening the excel file like this
Process pro = Runtime.getRuntime().exec(strExcelPath+" "+"..\\std\\app\\client\\resource\\SkillReport.xlt");
when i am opening like this it is opening the tempalte for editing in stead of getting new instance from it. Can any one help me to get a new instance in stead of opening the template itself.

Thanks guys. I've found another way of doing the same.

Similar Messages

  • Automatically create new Excel file from template using data from a selected row in a separate Excel file

    I am fairly new to Macro and VBA in Excel. I am trying to reduce the amount of work involved in a task that is performed often in our office. Currently, the task involves using 2 separate Excel files. One file is a tracking sheet and the second is the document
    that gets sent out to the client. The second document has all the same information that is inserted into the tracking sheet. What I would like to do is have the information that is in one row on the tracking sheet populate into a new excel file that is created
    automatically from an existing template.
    I have been able to make this partially work. What I have been able to achieve is have the cell that is selected in the tracking sheet (the description field) copy into the new file that is created from the template that is on our server.
    Sub NewRFI()
    ' NewRFI Macro
        MsgBox Selection.Address(ReferenceStyle:=xlA1, _
                               RowAbsolute:=False, ColumnAbsolute:=False)
        Selection.Copy
        Workbooks.Add Template:= _
            "template file path goes here"
        Range("C14").Select
        Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
        False, Transpose:=False
        Range("C14").Select
        Application.CutCopyMode = False
    End Sub
    What I need to do is get the rest of the information from that same row in the tracking sheet to copy to the new file as well. The other information includes the document number (one cell to the left of the selected cell), who it is from (one cell to the
    right of the selected cell), and the date (two cells to the right of the selected cell). As stated, this information is all in the same row on the tracking sheet. Each piece of information needs to be copied to a certain cell in the new file and I do not want
    the source formatting to be copied to the new file.
    Ideally, I would like it to operate like so: select the first cell in the row (in this case would be the document number field). Then click a button to run the macro that will then copy the information from that row in the tracking sheet to specific cells
    in the new file that is created from the template.
    This process will save us from having to either manually copy and paste the information into the new file or re-type the same information that is already in the tracking sheet.
    This is probably a simple thing to do but it would be great if anybody had some insight on this issue. Thanks in advance!

    Try code like the following. You will have to change the target cells (D25, F1 and H4) to the ones you want, I just used some arbitrary cells as example.
    Sub NewRFI()
    Dim rngCell As Range
    Set rngCell = ActiveCell
    MsgBox Selection.Address(ReferenceStyle:=xlA1, _
    RowAbsolute:=False, ColumnAbsolute:=False)
    Workbooks.Add Template:="template file path goes here"
    Range("C14").Value = rngCell.Value
    ' Change the target cells as needed
    Range("D25").Value = rngCell.Offset(0, -1).Value
    Range("F1").Value = rngCell.Offset(0, 1).Value
    Range("H4").Value = rngCell.Offset(0, 2).Value
    End Sub
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • I want to open an excel file from a folder in the Microsoft live office on Hotmail. Their instruction is to go to tools in Firefox, go to plug-ins and then install Microsofts Office 2010. Can't find plug-h. Help?

    I have uploaded an excel file from my desk top to the Windows Live (HOTMAIL?) office suite. When I try to open the file I get an error that says my system is not supported. My system passes all of the listed criteria except for one. That is a plug in from Firefox. The instructions say to go to the Firefox menu, click on tools then plug-ins. Of course when I go to tools plug-ins is not immediately available, but when I do go to plug-ins, I am to click on Microsoft Office 2010. This plug in is supposed to allow earlier versions of office documents to be viewed as well as Office 2010. The plug-in is not available. When I search the Firefox website I am not able to find such a plug-in.
    I am using Microsoft XP, Office 2007 and the version of Firefox prior to V4. V4 does not support all of my e-mail clients so am not able to use V4.

    I am using Microsoft XP, Office 2007 and the version of Firefox V4 but I have this same problem.

  • Office 2013 can't open word, excel files from the network after upgrade to 8.1

    Hello,
    Recently, I upgraded all PCs from WIN 8 to Win 8.1. After the upgrade I noticed that I can't open any word documents and excel files. Before the upgraded I have no problem opened any files. All PCs have over 500GB free space on hard drive. Other PCs that
    run Win 7 have no problem open them only the one with Win 8.1. This is what I got:
    I right click--> property and there is no unblocked. All files resided on the network server.
    Please help.
    Jimmy

    Hi Jimmy,
    Did you get any error message when you try to open an Excel file/Word document?
    If so, you can post the error message and  event log here.Also ,if you had antivirus software installed, try to disable them to test this issue.
    In addition, what happens if you add the network server location as a trusted location?
    Wind Zhang
    TechNet Community Support

  • How to open an excel file from labview?

    I tried to use "open file" vi from File I/O -- Advanced file functions to open an excel file in LabVIEW. Why the excel file wouldn't open after I run the program?

    In addition to ActiveX, you can also manipulate Excel data files using the Windows ADO interface - a technique that is more robust, faster and IMHO easier. Do a search on the forum as there have been several threads within the last week or so discussing this very thing.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Opening an excel file from a button. square brackets in filename

    Internet explorer 6. Apex 3.1
    When I open an excel file (via a button) , it has the filename as follows:
    production_report[1].csv
    The prompt to save or open has the name as production_report.csv
    This prevents people saving the opened file as square brackets are not allowed in the file name.
    Is this an apex issue (ie a problem with the way I specify the filename) or a browser issue, and is there a solution?
    I am passing the filename in to my excel download page using the items/values settings.
    eg
    ITEM P12_FILENAME
    ITEM VALUE production_report.csv

    Yes, It works on firefox. It is only an issue with Internet Explorer.
    However our web based application has to use IE and therefore when it calls apex it is in an IE browser.
    I am really just producing a csv file, and opening it in excel. If this was fixed (or customisable in some way in IE that would help)

  • Open an excel file from jsp

    Hi,
    I want to open an excel file on click of a link in the jsp.
    At present iam using href which i feel is not correct as it is not able to recognize the excel format and paints the entire screen with special characters.Can anyone please help me out.
    Thanks,

    In your server, there should be some way to tell the server the mime type of a file based on the file's extension. So, you tell the server for every file with the extension of .xls, it should use the mime type of application/vnd.ms-excel. Then, when the link is clicked on, the browser will receive the mime-type message of application/vnd.ms-excel and will open Excel to work with the file.
    Hope this helps,
    Ron

  • Opening new excel file by righ click produce worksheet name in french

    Hi,
    I am using Office 2010. I have strange problem. All my language setup is English. Though when I create a new excel file using right click options. It does create a new excel file with work sheet  named in French by default. I see following three worksheets:
    Feuil1, Feuil2, Feuil3.
    How can I change this to English name so everytime it creates work sheet names as Sheet1,Sheet2,Sheet3?

    Do you have a language pack installed? I assume your computer language is set to French?
    Maurice

  • Opening an Excel file from a Website

    We have an .XLS file that our users open from an IIS 6.0 website.  A majority of our users can open the current version of the file.
    Some of our users get a cached version of the file from days ago when they click on the website's URL for the spreadsheet.  The Excel spreadsheet opens as [Read Only] [Shared] [Compatability Mode] for all of our users.  We have multiple users on
    the same PC and not all of the users have the same issue of opening a cached version.
    I have narrowed it down to something going on with the profile because I delete the profile of a user experiencing the issue and the current version of the spreadsheet opens.  This is a painful bandaid to fix the issue.
    I have found multiple copies of the spreadsheet in C:\users\<USERID>\appdata\Roaming\Microsoft\Excel   Is this where Excel stores copies of the spreadsheet when it downloads?  Is there a place in the profile that Excel stores offline
    copies of spreadsheets that are downloaded?
    I have thought about one of the following to resolve the issue:
    1.  Saving the master spreadsheet as HTML on the web site.  The problem is the webpage opens and transitoins to other "tabs" slower than the actual spreadsheet
    2.  Write a login\logoff script to clear out the location the cached file is stored.  I first have to make sure that I have the correct location.
    3.  Change settings in Excel or IE to clear out the cache that Excel is using.
    4.  Convert the Excel spreadsheet to an .XLSX file and update the URL on the website to reflect the new file
    Am I missing something or does anyone have another suggestion to resolve the issue?

    Hi,
    Please try the steps below and check if it helps:
    1. Search for "Upload Center" in your Windows.
    2. In the Upload Center window, click Settings.
    3. Tick the check box labelled "Delete files from the Office Document Cache when they are closed".
    4. Click "Delete cached files" button.
    5. Click OK.
    Regards,
    Steve Fan
    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.

  • Want to open a excel file from remote Linux server through ADF UI

    HI,
    My scenario is a excel template is located in LInux server in a directory. Then I need to download this excel file when I click on a hyperLink which will call the method mentioned below.
    however, below method works fine if the file is on windows machine/server but not if on Linux machine. In case of LInux it gives junk file.
    please suggest if any solution exists.
    Thanks,
    Sachin

    Moderator Action and Advice:
    @ user8106712,
    Your post has been split away from the completed 2006 thread you had resurrected.
    Hijacking someone else's discussion is poor forum etiquette.
    When you do that you are saying:
    "My issue is more important than yours. Ignore all that earlier stuff and just pay attention to me."
    If you want considerate responses, always start your own new post.
    You may also need to occasionally review the OTN Forums FAQ that is linked at the top corner of every page.

  • Opening the Excel file from Application server

    Hi All,
    I had uploaded an excel file on the application server for using it in my program .
    But when i am opening the uploaded file on the Application server it shows some special characters and those are also displayed on my report output while reading the file from the application server.
    Please suggest how to get rid of those special characters.
    my open data set statement is
    OPEN DATASET pg_out2 FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.

    Hi ,
    if it a Excel file ..
    do the following..
        OPEN DATASET pg_out2              "appl file
                FOR INPUT IN TEXT MODE
                ENCODING DEFAULT.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_infile INTO w_temp.
    *       Condition To check when cursor reaches End Of file
            IF sy-subrc EQ 0.
              PERFORM f_split_appl_data.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_infile.
        ELSE.
          MESSAGE 'Error in opening file' type 'E'.
        ENDIF.
    FORM f_split_appl_data .
      SPLIT w_temp AT ',' INTO : wa_inputfile-plannum ......   "Split at , for excel or CSV file formats at appl files
      APPEND wa_inputfile TO t_inputfile.
    ENDFORM.                    " F_SPLIT_APPL_DATA
    Prabhudas

  • Can I open a excel file from labview

    I have a program who write temperature in a excel file and i want to open this file from labview .

    This depends slightly on the amount of data you have stored within Excel.
    You can use the "Labview Functions>>FileIO>>Read from Spreadsheet file.vi" which effectively reads all lines from a text file and converts it into a numeric array.
    Alternatively, if your data structure in Excel is more complex than this, you can use ActiveX calls to Excel to retrieve it.
    Use an "ActiveX>>Automation Refnum" control and select the Excel server class. This will then enable you to access properties and methods of Excel to retrieve data from specific cells and pages.
    The attached example should help.
    Dan
    Attachments:
    Excel_Automation.vi ‏60 KB

  • Opening Excel Files from DB (blob column)

    My project has implemented a WEBUTIL solution to attach files into the database, view the files stored in the database (in a BLOB column), and remove the files stored in the database.
    Everything has been running smoothly. We are in final testing and have found a couple of interesting scenarios ...
    When a user tries to view an Microsoft Excel 2007 file from our application, the Excel file displays properly (as long as Microsoft Excel isn't already open - outside of our Oracle application). Once the Excel file is viewed, the system will not allow the user back to our application until after the Excel file is closed (we use the start /wait myExcelFile.xls ... command). This works perfectly for us.
    The two scenarios we encounter occur when
    1.) The user has Microsoft Excel open outside of our application and tries to open an Excel file from within our application, or
    2.) The user has the file already open (either from within our application or outside of our application) and then tries to open the file from within our application.
    Let me explain a little further because the above two scenarios are interrelated.
    When a user has Microsoft Excel open (outside of our application), and then clicks the button to open the Excel file, the system will open the file as another window (within Excel). The system will allow the user to navigate back to our application (where as, if Excel is not open outside of our application, the system will not allow the user to navigate back to our application). Once the user navigates back to our application (while the file is still open), the user can click the button to view the file again. At this point, the user is displayed a WUT-105 error message (I assume b/c the system is trying to open a file that is already open).
    I assume the two solutions are the following:
    a.) Do not allow a user to open a file that is already open (not sure how to check this from within Forms ?)
    b.) Do not allow a user to open an Excel file when another EXCEL process is already running (this will avoid allowing the user to naviagate back to our application)
    I don't know if there is a better solution.
    Do you experts have any recommendations?
    We are using Oracle Application Server 10g R2 (10.1.2.0.2), Oracle Database 10g R2 (10.2), and Oracle Developer 10g (10.1.2.0.2)
    I hope this all makes sense.
    Thanks,
    Mike
    Edited by: user639843 on Oct 20, 2008 2:15 PM
    Edited by: user639843 on Oct 20, 2008 2:20 PM

    Thank you, Thank you, Thank you!!!!
    I believe that will work (adding a sequence number to the end of the filename)!
    We do not allow a user to update the file, only view. If a user wants to make a change, they need to remove the existing file (from the database), create a new file (outside of our application), and attach the file in our application (into the database). All updates occur outside of our application - we are not a document authoring system, just a document storage system.
    Once again, many thanks on the solution!
    Mike

  • Opening an Excel File on the CD

    Hi, I am creating a splash screen & interactive menu for
    a product CD. I want to be able to open an Excel file from the CD
    Menu. First, give them directions on how to use the Excel file,
    then let them click on a link that opens the file from the CD.
    Can you help me with this?

    Which version of Director are you using?
    I would suggest using an xtra like Buddy API or FileXtra4
    (depending on
    your answer to the above question) and using them to run an
    "open"
    command on the full path to an Excel file that you pass to
    the xtra's
    method. For example, using Buddy API:
    on mouseUp me
    -- assuming you have a document named "document.xls"
    -- in a folder named "Excel" located next to the movie file
    that
    executes this command:
    OK = baOpenFile("@/Excel/document.xls", "normal")
    if OK < 32 then
    -- an error occurred, check the BudAPI docs for numbers and
    their
    meanings:
    alert "Error opening document:" && OK
    end if
    end

  • Fetch excel file from app. server using open dataset...

    Hello Experts,
    Our functional consultant is asking me if it possible to get an excel file from the
    application server file using OPEN dataset and in background mode? If yes, Please tell me on how to do this.
    Thank you guys and take care!

    Hi Viraylab,
    to download this the procedure:
    you can use the FM 'EXCEL_OLE_STANDARD_DAT ' for this purpose.
    this FM 'EXCEL_OLE_STANDARD_DAT' can be used to start Excel with a new sheet and transfer data from an internal table to the sheet.
    Here are some of the parameters:
    file_name: Name and path of the Excel worksheet file e.g. ?C:TEMPZTEST?
    data_tab: Name of the internal table that should be uploaded to Exvcel
    fieldnames: Internal tabel with column headers
    How to build the field names table:
    data: begin of i_fieldnames occurs 20,
    field(60), end of i_fieldnames.
    i_fieldnames-field = ?This is column 1?. append i_fieldnames-field.
    i_fieldnames-field = ?This is column 2?. append i_fieldnames-field.
    to upload follow this:
    OPEN DATASET dsn FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET dsn INTO itab-field.
    IF sy-subrc = 0.
    APPEND itab.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    [/code]Rob
    or Try this function module.
    FILE_READ_AND_CONVERT_SAP_DATA
    pass 'XLS' to I_FILEFORMAT..
    Dont forgot to Reward me points .....All the very best....
    Regards,
    Sreenivasa sarma K.

Maybe you are looking for

  • Automating Goods Receipt against a PO

    Hi Forum, Currently our company uses the "MIGO" tranaction to manually post a goods recipt against a Drop Ship PO. We wanted to automate the process using the EDI 856 from our vendor to create a DELVRY05 Idoc. We are currently using SAP 6.0 and this

  • Is there a way to gather all shape layer and all text layers?

    Hi - I have 250 multi-layered PSD (CS5/Win) files.  Each file shows 2 views of a product.  Parts of the product are labels (Text layers with different words). Then Shape layer arrows point from the label Text to the specific point on the product.

  • Interactive Report - Distinct

    Maybe I'm missing something but in an interactive report, can you perform a "Distinct" on selected columns? For example, an interactive report starts with 10 columns and every row is unique. A user then hides 5 columns. The result set now includes no

  • Newbie help on Queries

    I just set up my first query page using two tables (categories and properties) and I set up a simplistic page here just to see if the data loads: http://209.62.4.98/~parishpr/query1.php It does, but it loads all the entries of the properties table. I

  • Regarding oradebug

    on internet I was reading a article about wake up PMON upon user request so it was saying use oradebug. I want to know other opinions that oradebug is safe to use in production environment or not? Thanks