Excel Template - Save with Unique Names

Hi - I have a SharePoint 2010 document library with an Excel template as the template.  When a user creates a New Document (new Excel workbook from template), the name of the new file is "PSR1".  Someone else may have also created a
new workbook, where the default name is PSR1.  How can you get Excel to name the file uniquely with each template?  I've set up fields to capture user name and date/hours/mins/sec and have it concatenated ina field for use as the name, but I can't
get Excel to use it or figure out how to make SharePoint require unique file names.  Thank you.

OOTB way there isn't any option to allow users to provide a specific file name, either you can set content approval for that document library or set an announcement / header asking users to only save file with that specific name series.
Regards,
Pratik Vyas | SharePoint Consultant |
http://sharepointpratik.blogspot.com
Posting is provided AS IS with no warranties, and confers no rights
Please remember to click Mark As Answer if a post solves your problem or
Vote As Helpful if it was useful.

Similar Messages

  • Create multiple instances of same class but with unique names

    Hi,
    I'm creating an IM application in Java.
    So far I can click on a user and create a chat session, using my chatWindow class. But this means I can only create one chatWindow class, called 'chat'. How can I get the application to dynamically make new instances of this class with unique names, for examples chatWindowUser1, chatWindowUser2.
    Below is some code utlising the Openfire Smack API but hopefully the principle is the clear.
        private void chatButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
            int selectedUserIndex = rosterList.getSelectedIndex();
            String selectedUser = rostAry[selectedUserIndex].getUser();
            System.out.println("Chat with: " + selectedUser);
            if (chatBox == null) {
                JFrame mainFrame = CommsTestApp.getApplication().getMainFrame();
                chatBox = new CommsTestChatBox(mainFrame,conn,selectedUser);
                chatBox.setLocationRelativeTo(mainFrame);
            CommsTestApp.getApplication().show(chatBox);
    }  

    yes, an array would work fine, just realize that by using an array, you're setting an upper bound on the number of windows you can have open.
    As for unique names, if you mean unique variable name, you don't need one. The array index serves to uniquely identify each instance. If you mean unique title for the window, set that however you want (username, index in array, randomly generated string, etc.). It's just a property of the window object.

  • How to open Excel Template save it under a different name and then write and save data to it at regualar intervals

    I have an excel template that I have created. I am opening that template, saving it under a different name, and then writing and saving data to that excel sheet at regular intervals. It is giving me an error 5, I understand what this means and I am trying to work around it.  However after too many hours spent trying to figure it out, I have asked for any help or input. I have attached an example vi, not the actual one since it is very involved.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Power Cycle Test 3.0 Excel Save Testing.vi ‏18 KB

    This snippet encapsulates most of the previous suggestions, and adds a few of my own.
    The first code shows one (simplified) way of building the output file name.  It incorporates the Build Path function to combine Report File Path with the file name (don't need initial "\"), builds the File Name with Format into String, getting the Time part of the name from Format Date/Time String.  I also use Build Path to get the Template path.  Inside the For Loop, another Format into String gets the data that is placed in the 10 Excel cells.  We don't write anything yet -- we're only filling in the cells in the WorkSheet (think of how you use Excel -- you could, but probably don't, save the WorkBook after every cell entry, you wait until you are all done and then do a Save, followed by closing Excel).  Finally, when we are done, we save the file using the output name we want to use, then close Excel (which disposes of the Report Object).  If we want to generate another report, with another (time-based) name, we can put this code into a sub-VI and simply call it again.
    Don't worry if you don't have LabVIEW 2014 (which was used to save this snippet) -- most of the code comes from the original that you posted, so it should be a pretty simple edit to change that code to match this.
    Bob Schor

  • Export as Separate PDF Pages with Unique Names

    I have an InDesign document that has several pages. I want to export each page as a seperate PDF, but they have to have a unique name that I want to be able to specify.
    For example, I want to export page 1 as "calendar page 2014"
    Page 2 as "Diary page 2014" etc.
    I found some solutions, but they aren't quite what I need:
    Export as Seperate pages with image name
    This apple script takes the name of the first image on the document and uses that as the name.
    However, my document has no images.
    Exportools
    A paid tool that offers many options for exporting. However, the name has to be based on a pattern, which is no good for me.
    I'm hoping that there will be a script that can take the name from a non-printing area/layer. That way, I can just put the desired name on the page and it will export with that name each time.

    have you looked at the extention Autosplit PRO?  This may be what you are looking for.  (Although, I don't think this software is compatable with MAC...but if you find out otherwise, please advise!)
    good luck..

  • A file want to save with this name "xstat_save" when i enter to some site .what is the problem?

    hi
    when i enter to some site like "http://www.mehrnews.com/en/" , a massage appear that a file with this name "xstat_save" want to save in hard disk.type of file is "aspx"
    what is the problem?
    plz help me
    thanks for your attention

    You usually see such a dialog to save a file if you have ad-blocking or security software that remove the GET data appended to a link to specify which file to load from the server.

  • AppleScript to resize images and save with new name

    I want to make an apple script, which resizes all images of a folder regardless what kind of filetype.
    The source folder will change every day.
    With the script i want to choose a source Folder, resize all images and save the files with my jpeg options in the same folder, but with adding  „_ipad“ in the filename.
    I tried to edit an existing script from this forum, but in Photoshop 5.1 i get the error-message "This function is possibly not available in this Version" in line 18 "save in file newFileName as JPEG with options myOptions"
    How can i save the documents with new name in the existing folder?
    Thanks.
    This is the script i’m working with:
    set inputFolder to choose folder with prompt "Wähle einen Ordner:"
    --set destinationFolder to choose folder with prompt "Wähle einen Zielordner" as string
    tell application "Finder"
              set filesList to (files of entire contents of inputFolder) as alias list
    end tell
    tell application "Adobe Photoshop CS5.1"
              set UserPrefs to properties of settings
              set ruler units of settings to pixel units
              repeat with aFile in filesList
      open aFile showing dialogs never
                        set docRef to the current document
                        tell docRef
                                  set newFileName to my getBaseName(name)
      --resize image height 240 resolution 72 resample method bicubic sharper
      change mode to RGB
      resize image resolution 72
                                  set myOptions to {class:JPEG save options, embed color profile:true, quality:12, format options:progressive, scans:3}
      save in file newFileName as JPEG with options myOptions
                        end tell
      close the current document saving no
              end repeat
              set ruler units of settings to ruler units of UserPrefs
    end tell
    on getBaseName(fName)
              set baseName to fName
              repeat with idx from 1 to (length of fName)
                        if (item idx of fName = ".") then
                                  set baseName to (items 1 thru (idx - 1) of fName) as string
                                  exit repeat
                        end if
              end repeat
              return baseName
    end getBaseName

    This seems like a Photoshop error not an AppleScript one. Have you looked in the Photoshop dictionary to see if the command you are getting the error on exists and if it has those options?
    If all you want to do is resize image files and save the resized image file you might want to look at Automator. Specifically the Scale Image action under Photos.
    regards

  • Create a temp file with unique name?

    Hi all,
    I need to create a temporary IResource in a KM repository. Is there any equivalent to the java.io.File.createTempFile() method to create a IResource with a unique name that isn't already there?
    Thanks for your help,
    Markus

    Hi Markus,
    AFAIK there is no such method.
    However, you can implement it yourself by using a simple rule,
    such as to concat a timestamp ((new Date()).getTime()) to the created resource's name.
    For an even more robust rule, you can also concat the creator's login-name.
    Hope that helps,
    Yoav.

  • Identifying Multiple printers with unique name?

    I support an office staff of 40 users that share 15 Officejet 100 L411a printers. When users connect a printer by USB, the computer will create a new printer with the default name "HP Officejet 100 Mobile L411" printer if that printer hasn't connected to that computer before. If the printer has been connected before, a new printer is not created.
    Many users have multiple copies of printers all with the same printer name "HP Officejet 100 Mobile L411". The printer that is connected is highlighted; all other printers are grayed out.
    My users want to know which printers they've checked out before when they pick up a printer. The users can rename the printers manually but most don't want to do that. I can rename them for the users, but that's a lot of users and a lot of printers. Either way, the next time they get a printer they haven't used before they'll get the default name.
    I'd like to know if there is a way to set the printer's firmware to create a unique name when the printer is created by using the serial number or another designation I could enter.
    For example, I'd like to have "HP Officejet 100 #MY1555AAQQ" or "HP OfficeJet 100 Purple #12" show up as the printer name. Is there any way to do that?

    Our requirement is...
    Yep, had this requirement as well.
    All these various user name collisions and worse is different IDs for the same person can be solved relatively easily by IdM.
    But best practice is still to remove the collisions and use unique IDs. Same goes for deleting users (dont do it).
    Good luck.
    Cheers,
    Julius

  • Keep getting a read only message and have to save with different name

    I am editing some pdf files, and every time I save I get the message: "The file may be read only, or another user may have it open.  Please save the document with a different name or in a different folder."
    However, when I right click the file and click properties, it is not listed as a read only file.  Nor is the directory read only.   Having to save each file as a different name is driving me nuts.   Is there a fix?

    Is this file saved on a network drive, or a shared folder?
    If so, it's possible someelse in the network has it open at the same time as you.

  • Photoshop CS5 save with same name to a folder, also smartsharpen?

    I thought this would be easier, just trying to save a file down with its current filename to a folder.
    On a side note I couldn't see the option in the Library for Smart Sharpen (not the unsharp mask) Can this be done?
    Matt
    tell application "Finder"
              set highResFolder to "Hal 9000:Users:matthew:Desktop:HR" as alias
              set lowResFolder to "Hal 9000:Users:matthew:Desktop:LR" as alias
    end tell
    tell application "Adobe Photoshop CS5.1"
      activate
              tell front document
                        delete layer "Original Image"
      flatten
      resize image resolution 300 resample method none
                        set myOptions to {class:JPEG save options, quality:12}
      save  in folder highResFolder as JPEG with options myOptions appending no extension without copying
      close the current document saving no
              end tell
    end tell

    Might have it!, still can't find the Smart sharpen so played with unsharp mask.
    tell application "Finder"
              set highResFolder to "Hal 9000:Users:matthew:Desktop:HR" as alias
              set lowResFolder to "Hal 9000:Users:matthew:Desktop:LR" as alias
    end tell
    tell application "Adobe Photoshop CS5.1"
      activate
              set myOptions to {class:JPEG save options, quality:12}
              tell front document
                        delete layer "Original Image"
      flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options ¬
                                  {amount:80, radius:3.2, threshold:0}
      --insert save option           save  in folder highResFolder as JPEG with options myOptions appending no extension without copying
      save in file ((highResFolder as string) & name) as JPEG with options myOptions without copying
      --Save for all HR JPEGS
      --Prepare for Low RES by resetting image history
                        tell application "Adobe Photoshop CS5.1"
                                  set current history state of current document to history state 3 ¬
                                            of current document
                        end tell
      resize image width 1020
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options ¬
                                  {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in file ((lowResFolder as string) & name) as JPEG with options myOptions without copying
      --close file
      close
              end tell
    end tell

  • Smart View/Excel A document with the name 'HsTBar.xla' is already open

    I got this error message when starting Excel. The following fixed it:
    1. Deleted shortcuts to HsTBar.xla in Documents and Setting
    2. Disabled Smart View in Hyperion > About
    3. Unchecked Hyperion Smart View for Office in Tools > Addins
    4. Quit Excel
    5. Started Excel
    6. Enable Smart View Hyperion > About
    I do not know exactly what fixed the problem as the error has not reoccured but hopefully this will help someone.

    Thanks for posting, this solution worked!

  • I have 60+ checkboxes all with unique names, how can I get a count of how many are checked?

    The checkboxes are named 1a, 1b, 1c, 2a, 2b, 2c, etc.. up to 27a, 27b... I could add the word "bed" to the beginning of each name if it helps.
    I want to create a text field that will update the count every time a box is checked or unchecked.
    Thanks

    It would be better to add "bed." instead, so that the field names are "bed.1a", "bed.1b", ..."bed.27b". You can then easily get an array of all of the "bed" fields, check each one, and increment a counter. The custom calculate script for the text field could be something like:
    // Custom calculate script
    (function () {
        // Get an array of the bed fields
        var fa = getField("bed").getArray();
        // Initialize counter
        var sum = 0;
        // Loop through the fields and update counter
        for (var i = 0; i < fa.length; i += 1) {
            sum += fa[i].value !== "Off" ? 1 : 0;
        // Set this field's value to the sum
        event.value = sum;

  • Script that saves every visible layer as individual file in folder with same name

    Hello.
    In my PSD I have many folders with unique name (like "1234"), that contains layers named as digits (like "0", "1", "2" etc).
    I need to save each layer as JPG to folder with the same name and hierarchy that is in PSD file.
    How to do that using JavaScript .jsx scripts?
    Thank you for any response.

    What exactly is the problem – addressing the Layers, creating the Folder structure, …?

  • Acrobat pro 9 - save with name lost format of document.

    Hi all !!
    When save with name a document after modify, it lost the format. A lot of words appear broken with a space between two letters:
    Example:
    Before " Your instructions were excellent "
    After save with name: " Yo ur instru  ctions were excell  ent"
    Why does this happen?
    Thank you for help.

    Very likely you have it set to embed the substitute fonts when you do a save as. I just had an issue with one sent to me that if I did a font embed (they were not embedded), the same thing happened. Instead of doing this, I simply printed to a new PDF (lose any bookmarks and such) and got what I wanted with all of the fonts embedded. I suspect your original did not have the fonts embedded and you are seeing the result. You might also check to see if you have Use Local Fonts selected or not, then reverse that selection and see if that helps.

  • In an Excel template file, can I set the Folder Path in the SaveAs Dialog box?

    I have an Excel template file (xltm) and, with help from the forum, I now have a Workbook_BeforeSave subroutine to save the template as a macro enabled file (xlsm).  I’m so thankful for that help from Edward in the forum.
    I also want to set the default folder location to save the file. I really only need it when the template is saved as a new xlsm file, because if they open the xlsm file, it’s usually opened from the default folder path so any save would normally go back
    to where the file was opened.  However, with a template (even if the template is in the default folder) the Saved template reverts back to the user’s documents folder.
    Is there a good way to do this?
    I tried to modify the Workbook_BeforeSave code like this:
    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Dim FolderDir As String
    Dim FileNameVal As String
    FolderDir = "Z:\save\data\place\"
    If SaveAsUI Then
    If Dir(WorkBookFolder, vbDirectory) <> "" Then
    Application.DefaultFilePath = WorkBookFolder
    End If
    FileNameVal = Application.GetSaveAsFilename(, "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Cancel = True
    If FileNameVal = "False" Then 'User pressed cancel
    Exit Sub
    End If
    ThisWorkbook.SaveAs Filename:=FileNameVal & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
    Application.EnableEvents = True
    End If
    End Sub
    But there are a lot of checks that would need to be done.
    I'm not sure how to only default the folder saved only when they open the template, but not change it when they just open an already saved Excel file created by the template (with all the active content, macros, etc.).
    Alan Edwards

    Hi Alan,
    store the path\filename in the 1st argument:
    FileNameVal = Application.GetSaveAsFilename("C:\*.xlsm", "Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
    Andreas.

Maybe you are looking for