Adding a sheet in excel with a specific name.

How can I add a sheet in excel with a specific name after an existing sheet with an unknown name.

Just use the Sheets->Add function and wire the existing sheet index into the After input.
From the Workbook refnum:
Wire Property Node - Workbook->Sheets
Wire Method Node - Sheets->Add, wire the After input
Convert the Variant from Add into a WorkSheet type
Wire Property Node - WorkSheet Name
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector
Attachments:
Add_Sheet.gif ‏4 KB

Similar Messages

  • Search if a layersets with a specific name exist and execute a function if it is the case

    Hello,
    How can i write a script that search if a layersets with a specific name exist and execute a function if it is the case?
    Some examples?
    Many thanks.
    Regards.
    Sebastien

    This would check for a LayerSet if a name with DOM code – so it’s fairly slow.
    var check = checkForLayersetNamed(app.activeDocument, false, "thisName");
    alert (check);
    ////// function collect all layers //////
    function checkForLayersetNamed (theParent, theCheck, theName) {
    /* if (!allLayers) {var allLayers = new Array}
      else {};*/
      for (var m = theParent.layers.length - 1; m >= 0;m--) {
      var theLayer = theParent.layers[m];
    // apply the function to layersets;
      if (theLayer.typename == "ArtLayer") {
    // allLayers.push(theLayer)
      else {
      if (theLayer.name == theName) {theCheck = true};
      theCheck = (checkForLayersetNamed(theLayer, theCheck, theName))
    // allLayers.push(theLayer);
      return theCheck
    Below is AM code Paul Riggott posted some time ago in connection with linking Layer Masks.
    Re: Automatically re-link layer masks
    You could add a check for whether the Layer is a LayerSet, but if the name is the sole distinguishing feature this might work as a basis for your operations.
    app.bringToFront();
    main();
    function main(){
    if(!documents.length) return;
    linkLayers();
    function linkLayers(){
       var ref = new ActionReference();
       ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
       var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
       var Names=[];
    try{
        activeDocument.backgroundLayer;
    var i = 0; }catch(e){ var i = 1; };
       for(i;i<count;i++){
           if(i == 0) continue;
            ref = new ActionReference();
            ref.putIndex( charIDToTypeID( 'Lyr ' ), i );
            var desc = executeActionGet(ref);
            var layerName = desc.getString(charIDToTypeID( 'Nm  ' ));
            var Id = desc.getInteger(stringIDToTypeID( 'layerID' ));
            if(layerName.match(/^<\/Layer group/) ) continue;
    /* you could insert your operations in an if clause here */

  • Test whether a layer with a specific name exists?

    Is there a simple way to test whether a layer with a specific name exists?

    Simon Dav wrote:
    - Multiple layer names
    - working only for one layer name
    - can you help me for this, how to get multiple names.
    - layers "Background", "Artwork", "diecut", "size", "sign of panel"
    This should work, as one possible approach:
    var doc = app.activeDocument
    var layersToTargetNameArray = ["Background", "Artwork", "diecut", "size", "sign of panel"];
    for (var i = 0, il = doc.layers.length; i < il; i++) {
        var curLayer = doc.layers[i];
        for (var j = 0, jl = layersToTargetNameArray.length; j < jl; j++) {
            if (curLayer.name == layersToTargetNameArray[j]) {
                // do something if layer name found
                curLayer.visible = false; // basic example
            } else {
                // do something else if layer name not found
    Hope it helps your efforts.
    Please Note: If your question exceeds this working response with further unrelated requirements (non related to this thread) you should start a new thread instead for your question, as proper etiquette.

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

  • I need to be able to save pictures with a specific name and email as a .jpg file (not an jpeg image).  Any app suggestions to be able to do this?

    I purchased Photoshop Touch which let me save the picture with a name, but when I emailed it, is was an jpeg image. 
    Anyone know how I can do this or have suggestions for other apps.   I've done quite a bit of research and having trouble finding this specific type of information
    Thanks!!

    Hi, I had the same issue. My solution was to take the freeware-tool clickto.
    So I'm now able to take any text, copy it and past it via clickto into a new mail.
    [http://www.clicktoapp.com Clickto ]expands your copy-paste feature by showing you some "satellites" after doing the copy action. These "satellites" now will give you some opportunities to paste your copied content, for example a picture to facebook or a text to a new mail on gmail with just 1 single click.

  • How to make applescript open a new safari window with a specific name?

    tell application "Safari"
      activate
      make new document at end of every document with properties {name:"MY-NAME", URL:"http://www.google.com"}
    end tell
    Run this script and see if you can figure out why the NAME of the window is still "Google".
    The dictionary  shows several different NAMEs for windows, documents and tabs and only tabs are R/O.
    This doesn't do anything either:
    tell application "Safari"
      activate
      make new document at end of every document with properties {name:"MY-NAME", URL:"http://www.google.com"}
      set the name of window 1 to "TEST"
    end tell

    The title of the window is provided by the page source.
    You can override it (once loaded) with, e.g,
         do javascript "document.title='MY-NAME'" in document 1
    If you had a blank Safari page (i.e. not Top Sites which does contain source data), you should be able to change the window title with
         set name of document 1 to "MY-NAME"

  • Automatically exclude all folders with a specific  name?

    I am using Apple's Logic audio program (but this could apply to anything):
    Every Logic project creates a folder named Freeze Files which is usually very large
    and not necessary (for me) to back up. So I'd like to tell TM to hide every instance of any folder named "Freeze Files", rather than hiding each one individually.
    Possible?
    Thanks.

    atom wrote:
    I am using Apple's Logic audio program (but this could apply to anything):
    Every Logic project creates a folder named Freeze Files which is usually very large
    and not necessary (for me) to back up. So I'd like to tell TM to hide every instance of any folder named "Freeze Files", rather than hiding each one individually.
    Possible?
    there is certainly nothing built in that's even remotely capable of this. it might be possible to script something but it could be pretty tricky. unless you are fairly familiar with shell and/or apple scripting you should probably forget it. Also, it's not clear exactly what you want. do you want this to be a one time operation or do you want it to automatically apply to all future "Freeze Files" folders?
    Thanks.

  • Adding users to PAB group with same last name as existing

    Cannot add user to PAB group when user has same last name as an existing Group member.
    Seems to work, see number tick up and green bar flash, but, never really adds.

    Joea,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Upload new pdf file with the same name

    We are trying to upload a pdf file with a specific name (i.e
    file.pdf) that has links to it on many pages of a website. We need
    the pdf file to keep the same name but when we try to upload it,
    Contribute is being 'smart' and changing the name so as to not
    overwrite the file on the server. But we WANT to overwrite the file
    on the server. Any ideas on how we can achieve this in Contribute?
    Thanks so much (in advance) for your help!

    Actually, we have the same problem and I believe the answer
    lies in the abilities that your role has assigned to it. The
    solution that ThinkInk gave works *if you are allowed to delete
    files*. If your role doesn't have that permission, then it will
    just upload another copy of the file and rename it.
    It's rather irritating that there isn't more control over
    this...our server is littered with *thousands and thousands* of
    duplicate files that originate from this situation.
    If your administrator wants you to be able to delete files as
    well, then you could get him/her to give you that permission, and I
    believe this will allow you to overwrite the file by using the
    "Publish file from my computer" option described above.

  • WEBI - how to save a report with a dynamic name

    I would like to create a report (pdf) and save it with a specific name :
         Example :      « Report_Name_YEAR_MONTH.pdf »
                   « Report_Name_object.pdf » where object came from the report WEBI.
    BO Xi propose the %SI_STARTTIME% variable on "date + time" format.
    1 - Can I use an other variable in order to have a date with this format : Year + Month ?
    2- Can I use an object create on the report WEBI ?

    Hello,
      I tried to save the variant of DEMO_PROGRAM_GET with dynamic selection field (Connection Number) filled. It gets saved without any problem. Just click 'SAVE' and enter the variant name and description.
    Thanks,
    Venu

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • How to generate a report in Excel with multiple sheets using oracle10g

    Hi,
    I need a small help...
    we are using Oracle 10g...
    How to generate a report in Excel with multiple sheets.
    Thanks in advance.
    Regards,
    Ram

    Thanks Denis.
    I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
    rdf paperlayout format will not workout for generating multiple worksheets.
    Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
    Regards,
    Ram

  • Is it possible to set up a form with a submit button where the data in the fields gets added to an existing excel file, just like 'collect response' but without connecting to the internet?

    I have a form that I want to use to collect peoples information with a submit button. I am trying to get the data that gets inserted to be added to an existing excel doc when the submit button gets hit, the form then resets and someone else can fill in the same form, hit submit and his data gets added to the existing data in the same excel doc. It is basically the same as the 'collecting response' option but without having to be online. The form is going to be used at a boat-show and I am going to get people to fill it out on an iPad. Does anybody know if this is possible?

    You could connect a bunch of 3700s to each computer and do this . 
    Or...since you're the one who monitors the monthly limit, you could restrict an individual's internet access once you see that you guys are coming too close to the cap. 
    I don't work for Cisco. I'm just here to help.

  • Compare Server Names in Excel sheet from column1 with column 2 and exact matched server names should be saved in column 3 in same Excel sheet

    Hi Guys,
    First of all thanks in advance any help much appriciated.
    I am new in scripting and excel, i am looking for below solution as my job requires daily work of this kind and i came to know by automating this work lots of time can be saved.
    Compare Server Names in Excel sheet from column1  with column 2 and exact matched server names should be saved in column 3 in same Excel sheet.
    Looking solutions first using excel i.e.vlookup itself so that it will not require any approval in my job else using powersell ,vbscript.
    Once again Thanks for you guys.
    /Regards
    Nitesh24in

    Hi Edward,
    Thanks once again
    I have only changed excel file path and after that this is saved as below , i am not sure which three lines should be together in one line. Please advise.
    $excel = New-Object -ComObject Excel.Application
    $Workbook = $excel.Workbooks.Add("F:\NewDocsToReadNitesh26-May2013\Excel\test.xls")
    $WorkSheet = $Workbook.Worksheets.Item(1)
    $WorkSheet.Activate() | Out-Null
    For ($i=1;$i -le $worksheet.UsedRange.Rows.Count;$i++) {
       If ($worksheet.cells.item($i,1).value2 -eq $worksheet.cells.item($i,2).value2) {
          $worksheet.cells.item($i,3).value2 = $worksheet.cells.item($i,1).value2
    }$Workbook.Save()$excel.Quit()[System.Runtime.InteropServices.Marshal]::ReleaseComObject([System.__ComObject]$excel) | Out-Null
    Thanks and Regards
    Nitesh24in

  • Viewing excel sheet on iPad with top row and leftmost column frozen

    I Wish to view excel sheets on iPad with leftmost column and top row frozen the way it is in excel so that one can move side wards and down with headings intact

    You can try converting the top row to a Header Row and the leftmost column to a Header Column.
    SG

Maybe you are looking for

  • [solved]Different Screen Resolution for different Users[/solved]

    hello i'm running kdemod i'd like to set up an account for my mum she prefers a resolution of 800X600 whereas i like 1024X768 my xorg.conf is set up like Section "Screen" Identifier "Screen0" Device "Videocard0" Monitor "Monitor0" DefaultDepth 24 Opt

  • Sql developer debugger issue

    I am using oracle sqldeveloper 1.0.0.15.57. Previously we were able to set up a breakpoint and step through a stored procedure inside a package. We made sure all the previliges are on and the debugging did really work. But after some time (no changes

  • ITunes very slow

    With version 9 iTunes has become very very slow and is often unresponsive for a few seconds when I switch to it from another app. Any ideas for optimization? (I've turned off Crossfade, Sound Enhancer, Sound Check, and Sharing.)

  • Laptop & PS3 disconnects randomly from 2.0 hub!!

    Help to resolve?? why does my laptop and PS3 disconnect randomly from my homehub!! when I had the Orange Home hub for 18 months this never happened??? it also automatically switches to bT Openzone!!! Hub is no more that 7ft from equipment with direct

  • Can't delete photos using Image Capture

    I just upgraded from an iPhone4 to 5s....all of a sudden I can't delete photos using Image Capture like I used to.  The "delete" menu item is grayed out.  The "delete after import" checkbox in the lower right is available, but I don't need to downloa