Importing multiple excel sheets into DIAdem

Hello,
I have an Excel file with multiple sheets. I am trying to import data from cells on each sheet into DIAdem. I am capable of importing anything I want so far using a VBS Script, but only from one sheet at a time. In order to import from another sheet, I have to select that sheet on Excel, save the file and close it. Then the next time the file is accessed by DIAdem, it will open on the sheet that was last saved on.
Is there a way I can create a VBS file that would check if there are any other sheets on the same file, move to a different sheet and import data from it? I am thinking some kind of IF statement that would realize when the last row from a sheet was imported, and then move on to the next sheet.
Any ideas/comments/suggestions will be greatly appreciated!
Thanks, Andy

Hi arkangel,
The GroupDefaultSet() command changes the default group, but that only affects ADDITIONS to the Data Portal after that point, such as new FormulaCalculation channels, excerpted section channels from VIEW, new ANALYSIS channels from an FFT calculation, etc.
If you want to reference channels of the same name from multiple groups, and you have DIAdem 9.x, you can use the [GroupName]/[ChannelName] adressing scheme to query off the "Time" channel from multiple groups. If you have DIAdem 9.1, then you can also use the [GroupIndex]/[ChannelName], [GroupName]/[ChannelIndex], or {GroupIndex]/[ChannelIndex] adressing options. For example:
For i = 1 TO GroupCount
ChNum = CNo("[" & i & "]/Time")
IF ChNum > 0 THEN Msg = Msg & "Group " & i & " --> " & ChnLength(ChNum) & vbCRLF
NEXT
MsgBox Msg
For DIAdem 8.x you will need to use the CNo() function's optional second parameter (ChannelNoStart) in order to ensure that you start at the next channel AFTER the one you just found. Channel numbers was all there was in DIAdem 8.x.
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • Error in importing multiple excel sheets to SQL Server

    I have a package which imports multiple excel sheets to SQL server using a For each Container. However I am getting the following error message "Excel Source failed validation and returns validation status "VS-NEEDSNEWMETADATA".
    Can you please advise me of the steps to potentially resolve this issue ?
    Many thanks
    Scott

    Hi Scott,
    Based on your scenario, you need to implement dynamic columns mapping which is not natively supported by managed source/destination adapters. To achieve dynamic columns mapping, we need to make use of Script Component to parse the input columns and dynamically
    map them to the destination columns.
    References:
    http://munishbansal.wordpress.com/2009/06/09/dynamic-columns-mapping-%E2%80%93-script-component-as-destination-ssis/ 
    http://blog.quasarinc.com/ssis/best-solution-to-load-dynamically-change-csv-file-in-ssis-etl-package/ 
    http://stackoverflow.com/questions/13836874/script-task-in-dft-doesnt-get-excecuted 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to spool data into multiple Excel sheet if result is more then 65k rows

    Hi all,
    Wann spool data into multiple excel sheet bocz my resultant no of rows are more then 65k.
    Thanks to all in advance.....

    many choices
    1) migrate to a newer version of Excel
    2) split the files after spooling
    for instance with split
    split -l65000 file.txtor with perl, java, vb or what-so-ever
    3) do more than one report by using rownum
    spool f1
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r<6 ;
    spool off
    spool f2
    select empno,ename  from (select * from (select rownum r,empno,ename from emp order by empno) where r<11) where r>5 ;
    spool off
    spool f3
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r>10 ;
    spool off

  • Problem with Changing Data while Import through Excel Sheet

    Hi Experts,
    I am new to SAP LUMIRA and I am facing an issue with it. Actually, I am importing the data for analysis from an Excel sheet into SAP LUMIRA. I am able to prepare the visualization in the first go. But If I am changing the number of columns in the excel sheet afterwards (that may occur in normal circumstances where data is dynamic) and then refreshing the LUMIRA dashboard, it fails. Please can you tell me about a possible mistake or is it really feasible when we change data afterwards and then refresh the dashboards once again.
    Looking forward to your answers.
    Regards,
    Aman

    What is the error message?
    Can you confirm you are using 1.15.1?

  • Download to multiple excel sheets in the backgraoud

    Hi,
    I am trying to download data into multiple excel sheets in the background. I was able to create comma delimited csv file in the server, which can be opened as excel file. This is good when it does not have more that one worksheets.
    I have three internal table and to send these internal tables in different worksheets in the same excel file.
    Is it possible to have multiple sheets excel file from the csv file?

    Check the following thread !!
    Re: Downloading data into excel
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • Export to Multiple Excel Sheets

    I would like to be able to export a report (or analysis) to multiple excel sheets.
    I have 2 options, 'Answers' and 'BI Publisher'. Ideally I would like to use answers, but will use Publisher if necessary.
    Is there an easy way to export reports to multiple excel sheets?

    Hi jitapong,
    When a Web Intelligence document is exported to a Microsoft Excel Workbook, the export is handled by the Web Intelligence report engine. Excel is not required to be installed on the machine to execute the export. So, regardless of whether Excel 2003 , Excel 2007, or no Excel is installed, the export is performed using the parameters built into the report engine. This export is done in the Excel 97-2003 format.
    A limitation of pre-2007 Excel is the inability to create a worksheet greater than 65,535 rows long. Excel 2007 overcomes that inability thus allowing users to create worksheets of much greater length.
    Resolution:
    Web Intelligence 3.1 versions overcome the 65,000 row limitation by exporting the document to multiple worksheets within the Excel Workbook. Each worksheet will be 65,535 rows long. For example, if a query returns 150,000 rows of data the resultant export to Microsoft Excel would produce a single workbook with 3 worksheets. 2 worksheets of 65,535 rows and 1 worksheet of 18,930 rows. This export is compatable with Excel 2003 and 2007.
    Regards,
    Chirag

  • Unable to import the excel template into form in HFM

    Has any one came across this issue that I am facing now?
    I have a form in HFM and I exported the form to Excel and the export works fine. but when I import the excel template into form, it was not successful. I have 250 rows in the template. I deleted 50 rows and tried to import and it worked fine . Is there any row limit on this?
    Below here is the error message that I am getting
    An error occured. Please contact your administrator
    Error Number: - 2147467259
    Error Description:007~Unexpected error~The function returned |.
    Error SOrce: request Object
    Page on which error occured:/hfm/data/processImportWdeffromExcel.asp
    I appreciate any ideas on this

    What version of HFM and Excel?
    Make sure you honor the file extension requirements for 2007 docs and import the same as they are exported.

  • Upload data from excel sheet into md61

    Hi Gurus,
                    Can anybody please tell me the solution like how to upload the data from excel sheet into the MD61
    if u suggest me to write an ABAP code then its fine or any other way would be great
    and can u also send me the abap code i would be thankful to all

    Hi,
    I can be done in 2 ways.
    1. Using LSMW you can upload your MD61 demand thru Excel sheet.
    2. You can use BDC to upload the demand from Excel. For this you need to take help from the ABAP. You need to record the macro usinf SHDB and the table maintenance will be taken care by the developer.
    For LSMW you need not depend on your developer, as a functional consultant you can do it yourself.
    Regards,
    V. Suresh

  • Uploading data from Excel sheet into SAP.

    Dear All,
    I want to upload data existing in Excel sheet into SAP. Is there any possibility with the following requirements?
    1) Excel file contains serial numbers with different values.Like power(230Wp),Voc,Isc,Vmp and Imp.
    2) We need to upload the same data into SAP with validations.
    3) Validations are like no serial number should be repeated.
    4) And depending on the Power value, the serial number should be assigned to different batches.Eg:The batches are as follows:
         201 - 210
         210 - 220
         220 - 230
       and if the Pmax of the serial number is 205.It should be assigned to batch 201 - 210 .
    5) At present we are using MB31 to post the serial numbers which are existing in the flat file.
    Thanks and Regards,
    Varun Siddharth

    Hi,
    Refer to the following code:
    DATA: lv_filetype(10) TYPE c,
            lv_gui_sep TYPE c,
            lv_file_name TYPE string.
      lv_filetype = 'ASC'.
      lv_gui_sep = 'X'.
      lv_file_name = pa_dfile.
    FM call to upload file
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = lv_file_name
          filetype                = lv_filetype
          has_field_separator     = lv_gui_sep
        TABLES
          data_tab                = gi_zhralcon_file
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    The excel file must be a tab delimited file.
    Hope it helps.
    Regards,
    Rajesh Kumar

  • Importing multiple Word docs into InDesign

    Hi there
    Is it possible to import multiple Word documents into a single InDesign text frame all at once?
    I have 20 files that all flow sequentially so was wondering if -- by selecting them all in Place window -- they would all be brought in one after the other, without each one creating its own new text frame.
    Any help gratefully received.
    Thanks
    Dan

    I use the script, below, for that. It's a bit scruffy, it should be tarted up. But it works fine. When you start it you type a path/file mask, using the formats illustrated in the dialog.
    It sets a few import preferences, these are the only ones I'm interested in. But it'll pick up the other options from their current settings.
    Peter
    // Description: Place multiple textfiles as one story
    #target indesign
    preset = '/d/test/*.rtf';
    app.wordRTFImportPreferences.useTypographersQuotes = true;
    app.wordRTFImportPreferences.convertPageBreaks = ConvertPageBreaks.none;
    app.wordRTFImportPreferences.importEndnotes = true;
    app.wordRTFImportPreferences.importFootnotes = true;
    app.wordRTFImportPreferences.importIndex = true;
    app.wordRTFImportPreferences.importTOC = false;
    app.wordRTFImportPreferences.importUnusedStyles = false;
    mask = prompt ('Enter a file path/mask.\r\r' +
        'Examples:\r' +
        'd:\\books\\test\\*.rtf   /d/books/test/*.rtf', preset);
    if (mask == null) exit();  // Cancel pressed
    ff = Folder (File (mask).path).getFiles (File (mask).name);
    if (ff.length > 0)
        placed = [];
        missed = [];
        tframe = app.documents.add().textFrames.add({geometricBounds : [36, 36, 400, 400]});
        placedstory = tframe.parentStory;
        app.scriptPreferences.userInteractionLevel =
            UserInteractionLevels.neverInteract;
        pb = initprogressbar (ff.length, 'Loading');
        for (i = 0; i < ff.length; i++)
            pb.value = i;
            try
                placedstory.insertionPoints[-1].place (ff[i]);
                placedstory.insertionPoints[-1].contents = '\r\r';
                placed.push (ff[i].name);
            catch (_)
                missed.push( ff[i].name );
        app.scriptPreferences.userInteractionLevel =
            UserInteractionLevels.interactWithAll;
        inform = '';
        if (placed.length > 0)
            inform = 'Placed ' + ff.length + ' files (in this order):\r\r' + placed.join ('\r');
        if (missed.length > 0)
            inform += '\r\rCould not place:\r\r' + missed.join ('\r');
        delete_empty_frames ();
        alert( inform );
    else
        alert (mask + ' not found.');
    // End
    function delete_empty_frames ()
        app.findGrepPreferences = app.changeGrepPreferences = null;
        app.findGrepPreferences.findWhat = '\\A\\Z';
        var empties = app.activeDocument.findGrep (true);
        for (var i = 0; i < empties.length; i++)
            empties[i].parentTextFrames[0].remove()
    function initprogressbar (stop, title)
        progresswindow = new Window('palette', title);
        progressbar = progresswindow.add ('progressbar', undefined, 1, stop);
        progressbar.preferredSize = [200,20];
        progresswindow.show ()
        return progressbar;

  • Export in multiple excel sheets

    Hi,
    I am using crystal XI and need to export in multiple excel sheets from crystal. How can I do that, please help me.
    Thanks,
    Sagarika.

    One of the 3rd-party Crystal Reports desktop schedulers listed at http://kenhamady.com/bookmarks.html allows you to burst a report so that each group level 1 becomes a separate excel worksheet in a single workbook.  It also allows you to export a report to a worksheet inside an existing workbook.

  • How to import multiple vcard contacts into iphone4

    How to import multiple vcard contacts into iphone4

    I had a Nokia C6-01 and had to import the contacts to my Iphone 4S. This is how I did it
    1. Open Nokia Suite and Click on Contacts
    2. Select all contacts. Click on File -> Import Contacts .Specify the folder that you are creating . For ex: C:\vcards.
    Now you have multiple .vcf files in this folder.
    To combine the multiple .vcf into a single .vcf
    a . Open command line interface (click Start -> Run, or windows button + r and type cmd to launch it).
    b. Navigate to the folder where multiple vCard files are by entering cd "C:\vcards", if the folder is there.
    c. Enter the command copy /a *.vcf combinedfile.vcf in the command prompt.
    3. Now add this file as an attachment and mail it to your email address. Open the email on your iphone and click on the attachment.
    4. It will prompt you to add the contacts. Now you have all the contacts on your Iphone.

  • How to import a excel file into database?

    hi all,
    How can I import a excel file into database?
    What I need to do first?
    Thanks,
    Amy

    1. Create a conrtol file in your disc(with notepad) ex
    test_loader.ctl
    LOAD DATA
    INFILE='C:\Testcsv.csv'
    into table test_table
    FIELDS TERMINATED BY ','
    TRAILING NULL COLS
    (ID,COL1,COL2,COL3)
    The table descrption is
    scott@ORCL> desc test_table;
    Name Null? Type
    ID NUMBER
    COL1 VARCHAR2(10)
    COL2 VARCHAR2(10)
    COL3 VARCHAR2(10)
    scott@ORCL>
    2 .Create a file testcsv.csv from your excel file you want to load with " save as" csv comma seperated value
    in your hard disc c:\
    3. in dos command mode write
    C:\>sqlldr scott/tiger control=c:\testcsv.ctl log=c:\testcsv.log
    Thats it!

  • How i can load excel sheet into a table in oracle through pl/sql procedure

    Hi,
    How i can load excel sheet into a table in oracle through pl/sql procedure or a pl/sql block. Excel sheet is saved on my c or d drive on my machine. In xls format.

    Depending on how big your spreadsheet is and how frequently you want to do this you might want to contruct insert statements in excel, then run these. I have done this to load a few hundred rows for a one off test on dev.
    e.g. if you have values 1 and 'a' in you spread sheet and want to insert them in to table xxx col1 & 2:
    | /|   A   |   B   |    C
    |1 |col1   |col2   |
    |2 |      1|a      |="insert into xxx ("&$A$1&","&B1&") values ("&A2&",'"&B2&"');"then paste the contents of colum C
    insert into xxx (col1,col2) values (1,'a');into sqlplus or a script.

  • Need sql query to import from excel sheet

    Hey , i need sql query to import from excel sheet.
    i work in a company where i need to daily update the data from excel sheet.
    if i get a shortcut method i ill be very thank full to you guys to reduce my work upto 10 %.

    any query which can inert from excel file?
    Sort of. Certainly not anything as simple as what you seem to hope for. Check out this very good PHP class:
    PHPExcel - Home

Maybe you are looking for

  • When I try to download acrobat xi pro it tells me to first close excel.exe, however, I don't see anything open. what is the problem?

    when I try to download acrobat xi pro it tells me to first close excel.exe, however, I don't see anything open. what is the problem?

  • Oracle 10g agent installation problem -- please advice. Thanks.

    I am trying to push an agent from a 32-bit CentOS 4.5 machine (where I successfully installed EM Grid Control with Database & that's working fine) to a 2-node Oracle 10g Clusterware/RAC, each machine has 64-bit CentOS 4.5. The questions I have are: 1

  • Shopping Cart Currency

    Is there a way to remove the currency from you shopping cart products or create your own currency? I am tryning to aad products that can be purchased with my own type of currency ie points. These poins will be send out as gift vouchers for dealers an

  • Increase Project File Size limit?

    When I'm recording a longer song with real instruments, occasionally I will be told I can't record because I'm close to the 2gb file size limit. How do you increase the file size limit, or just get rid of it all together? Thanks

  • ORACLE Lite conduit for Palm

    I had a lot of fun getting the Oracle Lite for handhelds install to work. Now I get the following error on hotsync: Unable to initialize threads: ,en Can't create Java VM OK Oracle with 2 message(s) Has anyone actually managed to get this to work? An