How to name a new Excel worksheet using an invoke node??

I want output from my specific labview code to be written to a new and specific worksheet (meaning I want to provide the specific worksheet name) of an Excel spreadsheet my LabVIEW code will generate. My code will run in a loop where I want data that is generated in each pass of the loop to be written to a new worksheet each time through the loop. I know how to do this if I am ok with just having each worksheet be named 4, 5, 6, etc (on top of the 1, 2 and 3 that comes standard with a new Excel spreadsheet) but I want more meaningful names than just those numbers... So how do I add a new worksheet and give it a name of my choosing??? Also, when right click on an invoke node and then click on "Help for Item" which is right under the Methods selection that comes up, nothing happens, meaning I am not directed to any help file. I see that same behavior under LabVIEW 6.1 and also under LabVIEW 7.1. My guess is either I didn't buy some option required to have that help area be populated or I had it as some option but didn't know to install it when I originally installed LabVIEW??? Having that help available might help answer the question I pose above... I find working with ActiveX components to not be straightforward. Granted I haven't done it much and what I have done has been sort of follow examples and get it to work... But on this naming a new worksheet I have found no useful examples. My guess is it's easy but I'm clueless... Any help would be much appreciated... Note, in case it matters, I do not own the Report Generation tool/capability... thanks... bob...

Hi, Paris1:
Take a look at "Excel Workbook Properties", that is located in
REPORT GENERATION
-> EXCEL SPECIFIC
-> EXCEL GENERAL
-> EXCEL WORKBOOK PROPERTIES
One of its outputs is "Current Worksheet Name".
You can insert a ExcelWorkbookProperties VI in a blank VI and then double-click it.
You will se a rose vi named Excel Get Properties
And inside it (double-clicking it), the way Worksheet's name is got. If you "Change to Write" that property node, you can set it's name.
This way is very complicated, it can be done faster, but this way you can see a process to do that, and checking it, you can build your own excel VIs to do specific tasks.
Hope it helps,
Aitortxo.

Similar Messages

  • How to create a new excel file using Excel Destination when Destination file not exists.

    how to create a new excel file using Excel Destination when Destination file not exists.

    Just need to set an expression for excel connectionstring and set delay validation to true and it will create it on the fly.
    The expression should return the full path with dynamic filename in each case.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How can I change the names of the Excel Worksheets using LabView?

    Hi Everyone...
    I want to start a project but I want to be capable to create and change the names of the worksheets in excel using LabView.
    We know the default name of the worksheets (Sheet 1, Sheet 2...)
    Can I make this change only using labview with some activeX, properties and methods...
    Best regards...
    Mexico
    LabView 8.0

    Hello,
    Yes, you can modify the name of an Excel Sheet with ActiveX property Node or Invoke Node.
    There are some good examples in the NI Example Finder of Labview on "Communicating with external Applications -> ActiveX -> Excel ->..."
    To modify the name of a sheet, you need to use the property "Name" of the reference "Sheet"
    Best regards
    Nick_CH

  • Using the invoke node VI Strings.Im​port

    I'm achieving a program to translate the captions which are on the front panels of existing programs.
     I use the invoke node VI String.Export to create a file containing the differents properties of the front panel objects of the target VI.
     I modify the fields <CONTROL ID .... name="xxxxx"> to change the captions and then i use the invoke node VI Strings.import to uptade the target VI.
    Then i use the invoke node VI Save.Instrument to save the modifications.
    The problem is that the Log File created by the invoke node VI Strings.import indicates me :
    Parsing error while importing strings
     to traduction_1.0.vi
     from C:\Documents and Settings\Administrator\Desktop\work\Labview\Exos\t​raduction\Vi_import.victl
    Tue, May 16, 2006 9:43:20 AM
    Error occurred while parsing for String object. Control name does not match.
    Which means that it can't change the captions name.
    Do i badly use the invoke nodes ? Do i have to use an other function?

    Apparently you are changing the control label, not the caption. If you created a caption for the control, the caption value should appear in the <PARTS> body, nested into the <CONTROL ...> tag.
    You can't change control labels this way. Labels are used to identify the control to which you are applying changes. Changing the label would cause the control not being found.
    Paolo
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • How do I produce an excel file using java code

    How do i produce an excel file using java code.
    If it is possible would ne one have ne source code as an example.
    I have tried looking up information on outputing the information to a *.csv file but unfortunality i have had no luck in finding any information. To be exact ne source code.
    Thanks
    Lee

    That's what I use and I'd be the first to admit that it's very messy. But it works. Go use Google and see what else you can find.

  • How to create autofilter in excel page using jxl api?

    Hi Friends,
    I am using jxl api for excel generation. Its no problem
    but i need to set auto filter options. I am search in this API package but i can't find it.
    Any one know how to create autofilter in excel page using jxl api?.
    Please ..... Its urgent.... ...
    Thanks

    Hi,
    Please mail me on [email protected] if u will find any solutions, i will do the same if i will find any...
    Thank u in advance,

  • How do you load an excel worksheet to ipad ?

    how do you load an excel worksheet to ipad?

    You can email it to yourself, the hold your finger on it until you get options to save as pdf (viewable in ibooks, but cannot edit) or dropbox, etc.
    I have Numbers app and save Excel docs in that app.  This way I have capability to edit it.

  • How can I tell how much heap space is actually in use by a node?

    How can I tell how much heap space is actually in use by a node? If I pass in ...
    set memory=1024m
    set java_opts=%java_opts% -Xms%memory%
    set java_opts=%java_opts% -Xmx%memory%...then memory usage starts high and stays there. I feel like I don't really know how close I'm getting to exhausting my cluster's memory as I insert objects.
    Thanks,
    Andrew

    Hi
    +(With apologies if I am misreading the question and thus answering the wrong one.)+
    [This agent|http://wiki.tangosol.com/display/COH35UG/Provide+a+Data+Grid#ProvideaDataGrid-NodeBasedExecution] reports how much free and total memory is being used on each node in the cluster.
    Regards
    Pete

  • How can i save the output array of the invoke node "commands values" into a specific file

    I must save the setup of vi commands'. I use an invoke node called "command value" wich give me an array with the name of the specific command and his value. How can i save this array into a specific file to load it later if o need. Must i change the array format?
    Thank you

    Hi,
    I have attached two VIs.
    The first one "Ecriture fichier tableau" (writer) permits to collect all control's values in an array (dbl) and to save it as .bin file. You had to convert variant type into dbl type. (You can do the same with string type if you wish. You will save datas as .txt file for example)
    The second VI "Lecture tableau fichier" (reader) permits to retrieve all the datas you saved in the file.
    I think this responds to your question.
    Regards,
    Attachments:
    Control values.zip ‏26 KB

  • Create new excel worksheet

    Hi all,
    Kinldy let me know how to create a new worksheet if the records exceeds 65536 rows in excel.
    Im using  FM MS_EXCEL_OLE_STANDARD_DAT.
    call function 'MS_EXCEL_OLE_STANDARD_DAT'                   
         exporting                                              
              file_name                 = filepath              
             create_pivot              = 0                      
             data_sheet_name           = 'Material List'        
            pivot_sheet_name          = 'Material List1'      
            PASSWORD                  = ' '                   
            PASSWORD_OPTION           = 0                     
        tables                                                  
            pivot_field_tab           =                       
             data_tab                  = it_bom_final           
             fieldnames                = out                    
    Am i missing any parameters in the FM or need to add additional logic??
    Regards,
    Senthil

    Hi Senthil,
    Refer sample code for generating multiple Workbook. You can write some logic to split.  Hope this helps.
    >
    Multiple excel sheets generation in a workbook
    CREATE OBJECT EXCEL 'EXCEL.SHEET'.
    GET PROPERTY OF EXCEL 'Application' = APPLICATION.
    SET PROPERTY OF APPLICATION 'Visible' = 1.
    CALL METHOD OF APPLICATION 'Workbooks' = BOOKS.
    CALL METHOD OF BOOKS 'Add' = BOOK.
    CALL METHOD OF BOOK 'WORKSHEETS' = SHEET.
    CALL METHOD OF SHEET 'ADD'.
    Fill all the sheets with relavant data
    PERFORM SHEET1 TABLES ITAB1.
    PERFORM SHEET2 TABLES ITAB2.
    PERFORM SHEET3 TABLES ITAB3.
    PERFORM SHEET4 TABLES ITAB4.
    Quit the excel after use
    CALL METHOD OF EXCEL 'QUIT'.
    FREE OBJECT: COLUMN,SHEET,BOOK,BOOKS,APPLICATION,EXCEL. "NO FLUSH.
    CLEAR V_SHEET.
    FORM FILL_CELL USING ROW COL VAL.
    CALL METHOD OF SHEET 'cells' = CELL NO FLUSH
    EXPORTING #1 = ROW #2 = COL.
    SET PROPERTY OF CELL 'value' = VAL.
    FREE OBJECT CELL NO FLUSH.
    ENDFORM. " FILL_CELL
    FORM SHEET1 TABLES ITAB1 STRUCTURE ITAB1.
    V_SHEET = Sheet Name.
    V_NO = V_NO + 1.
    CALL METHOD OF BOOK 'worksheets' = SHEET NO FLUSH EXPORTING #1 = V_NO.
    SET PROPERTY OF SHEET 'Name' = V_SHEET NO FLUSH.
    PERFORM FILL_SHEET1 TABLES ITAB1 USING V_NO V_SHEET.
    CALL METHOD OF SHEET 'Columns' = COLUMN.
    FREE OBJECT SHEET.
    CALL METHOD OF COLUMN 'Autofit'.
    FREE OBJECT COLUMN.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    FORM FILL_SHEET1
    TABLES ITAB1 STRUCTURE ITAB1
    USING V_NO V_SHEET.
    ROW = 1.
    PERFORM FILL_CELL USING ROW 1 'Column1 Name'.
    PERFORM FILL_CELL USING ROW 2 'Column2 Name'.
    PERFORM FILL_CELL USING ROW 3 'Column3 Name'.
    ROW = ROW + 1.
    LOOP AT ITAB1.
    PERFORM FILL_CELL USING ROW 1 ITAB1-Column1.
    PERFORM FILL_CELL USING ROW 2 ITAB1-Column2.
    PERFORM FILL_CELL USING ROW 3 ITAB1-Column3.
    ROW = ROW + 1.
    ENDLOOP.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    Reward points if this Helps.
    Manish

  • How to create a New Excel File programmatically

    Hi !
    I am documenting acquired data continuously in an excel file, what I need to do is to create a new excel file automatically when the size of the previous file exceeds a certain limit lets say 1MB.
    I have tried using the simple 'Create/Open File' function and the 'Write to Spreadsheet File' function to create the new excel file. I does create a file but when I open the file it says the format of the file is not what you have opened it with.
    Also when the new file is created, three new worksheet are to be added programmatically with pre-defined worksheet name and also Column headers for each of the worksheet are to be added.
    I am also using 'Labview Report Generation Toolkit for Office'.
    Regards,
    Reeves
    Solved!
    Go to Solution.

    @ Aldo A
    Thanks for the reference to tutorial, I didn't know about them. They are useful in general but unfortunately they don't answer the problem of creating an altogether new excel file programmatically.
    @ ben64
    The template thing simplifies the issue of formatting the new file. But I am still working on the new excel file creation challenge.
    Let me put my problem in a different way.
    Certain data is being acquired continually and is being written to a certain excel file, when the size of the file exceeds lets say 1MB the program should start saving the data in a NEW FILE instead of the previous file.
    I have attached the VI to explain what I am trying to achieve here.
    Reeves
    Attachments:
    New Microsoft Office Excel Worksheet.zip ‏30 KB

  • How to create a new User / Contact using APIs

    I am not able to figure out how to create a new User / Contact in WLPS using APIs
    . Is there a factory class ?
    Thanks,
    AJ

    Hi Bala,
    Try using these function modules
    SUSR_BAPI_USER_CREATE
    BAPI_USER_CREATE
    BAPI_USER_CREATE1
    BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
    Please read the FM documentation for more information.

  • How do I print an excel worksheet so the rows have contrasting shades making it easy to read data across the page?

    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?

    sophia beth wrote:
    I want to print an excel worksheet so that the rows are shaded light then dark, light then dark. This helps when reading the data across the page on any selected line. Where do I select that option?
    Not sure if it's any better in the version you have, but in earlier versions, you would have to manually select alternating rows using cmd-click in the row numbers and then fill the cells with the lightest possible shade in the fill palette.  Again, in an earlier version, it is possible to use the format painter (use your Excel help for details) to select several rows formatted with the shading and paint that format to an equivalent number of rows elsewhere.

  • How do I protect/unprotect Excel Worksheets with Activex

    Hi,
    I am reading and writing some data to Excel.  I have the Report Generation Took Kit.  I am trying to unprotect a sheet, do my stuff, then protect it.  I modified the Excel Get Worksheet vi. to include the protect invoke node, but the worksheet is never goes into protection.  I have attached the protect vi that I am trying to use. 
    Any way to do this works for me, and it doesn't have to be as attached. Thanks
    Attachments:
    Protect.vi ‏106 KB

    Well don't I feel silly. For this to work the Get Worksheet Function had to be used first to actually get the sheet. See attached.  This now works fine.  Download both files to see.
    Message Edited by hyatt on 12-20-2005 02:09 PM
    Message Edited by hyatt on 12-20-2005 02:10 PM
    Attachments:
    protectexcelsheet.vi ‏16 KB
    Protect.vi ‏43 KB

  • How to add a new excel sheet  when the row count exceed more than 65 k

    am working on business intellignence am able to export the data to excel sheet but my data exceeds the sheet limit so how to add to another sheet when the last row is hit ..???
    any suggestions warm welcome...
    help me to fix this issue...

    You've not specified how you're generating the Excel file. Are you using POI? JExcel? What?
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

Maybe you are looking for

  • A critical program error occured when running a workbook

    Some end users get a critical program error occured when running a workbook when they want to make selections. In the trace they get the following message System.ArgumentException: Item has already been added.  Key in dictionary: "44ABATDK7TYM365CYLQ

  • Export photos from samsung phone to Ipad

    Hi have purchased mini Ipad. I have photos on my Nokia E63 and wish to export to my ipad or mac computer OSX version 10.5.8. I can bluetooth photos from my phone to my computer but am unsure how to go about it all with the ipad, anyone out there can

  • For all entries query

    Hi, can we do a for all entries with a table type parameter. select * from <tablename> for all entries in <internal table> (importing parameter in an FM a table type parameter)....where <cond>

  • Help on removing a enhancement implementation

    Hi all, I created an enhancement. The enhancement has no code in it. It was created by error. It is not in any change request. I tried to recreate the enhancement with an empty core, but the system always tells me that it already exists. How can fix

  • HT3155 Can we have Bilingual interface.

    Some people like menus in both languages.