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

Similar Messages

  • How do I save a pages doc under different name?. it only says save version. I want to call it differentyl!, how do I save a pages doc under different name?. it only says save version. I want to call it differentyl!

    how do I save a pages doc under a different name?. it only says save version. I want to call it differentyl!

    Dan Mitchell1 wrote:
    (1) The OP is technically correct - there is no direct equivalent of  "save as".   There is "save a version" and there is "duplicate".
    (2) So far it seems that to get the same effect as "save as" you need to create a "duplicate", then save the duplicate.  The duplicate will automatically be given a name like "docname.copy.pages", which can be changed to that desired.
    (1) nobody wrote about the technical aspect of the OP's question !
    But, you wrote something wrong.
    There is a "Duplicate" item, a "Save a Version" item and there is a "Save…" item.
    (2)  The reproduced help page clearly state that the first step is to trigger 'Duplicate' For the second step, it's not clear. It seems that the ones writing the Help were not informed of the definite choices made by the developers. They wrote "Save As" but never was such an item. It was "Save As…" in which the ellipsis is an important component. At last, the developers defined two items : "Save…" and "Save a Version" ( at this time I'm running 10.6.8 so I can't check if this item has or hasn't an ellipsis).
    Yvan KOENIG (VALLAURIS, France) lundi 1 août 2011 10:20:08
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to open a Template when Pages is already open

    I have just copied and pasted some text into a blank pages document.  I want to convert this doc. to a letter head that I made a template for.
    I would like to open the template, then copy/paste the first doc info into the template doc.
    I haven't been able to figure out how to open a template when a document is already open.

    Sorry,  P5.2, Mavericks.
    I did set the preferences to New Documents> Use Template: Blank, to stop endlessly having to choose a template when I don't need one.
    When I pull down File, there is no New from Template Chooser.  File>New just opens another blank file.
    To check, I went back and enabled "Show Template Chooser".  Now it demands I choose a template whether I want to or not.
    OK, it seems Apple is forcing you into either/or.  I want both/and.  I don't want to be forced to choose a template when 99% of the time I don't want anything but a blank file.  It is a nuisance.  But the occasional time I am composing something and decide it would be better off as a universal doc with letter head, I am stuck and cannot choose open a template so I can stick the material in it.
    The options are lousy.  Close/save the doc, reset the preferences to templates, shut down Pages, restart pages, select template, open old doc, copy/past old text into new template.  Or, while the original doc is open the first time, I could go find a stored doc with the right letter head template, open it, copy/paste the previous text into the letter head doc (and delete everything else).
    Neither of these options is worth a wooden nickel.  Apple needs to think this one through again.  Like have multiiple buttons with View on it, doing different things.  At least they got rid of using the paragraph symbol for two or three different functions.

  • Group/Ungroup outline & Run macro automatically once open excel templates

    Hi all,
    Would need your advise for the following queries.
    1. May we have a protected sheets with Group/Ungrouped features?
    2. Is there a way to auto-run the macro once we open excel template?
    Looking forward to hear from you all! Thank you very much!

    Hi Tim,
    Thanks for your feedback! I did tried this before, but it remain the same. Please look at the code as below. I'm looking something that can execute the macro once open up the workbook,like  "Call onFileOpenMacro".
    Private Sub Workbook_Open()
        With Sheet1
           .Protect Password:="Secret", userinterfaceonly:=True
           .EnableOutlining = True
        End With
        'Call onFileOpenMacro
    End Sub
    Please advise.
    Thank you!

  • How do i save a numbers doc under a different name

    I'm trying to save a numbers document under a different name.  I could change it easily yesterday but it's not working today?

    What version of OS X and Numbers are you using?
    If you are working under Lion and the latest version of Numbers use File > Duplicate and then Save.
    Mario

  • I have been creating forms in InDesign and pulling into Acrobat XI Pro to do form fields. My client would like to fill in the PDF form, save under a different name locally on their device, and redistribute. The problem I have is that, sometimes, they want

    I have been creating forms in InDesign and pulling into Acrobat XI Pro to do form fields. My client would like to fill in the PDF form using Reader, save under a different name locally on their device, and redistribute. The problem I have is that, sometimes, they want to redistribute the form as Read Only. I know how to flatten the form on a mobile device, but uncertain how they can do that with a PC or Mac using Adobe Reader. I looked at FormsCentral thinking there might be a solution going that route, but don't believe there is. Any advice?

    FormsCentral won't help with flattening a form. You could set up the form in Acrobat so that the fields are set to read-only, using JavaScript. Not quite the same as flattening but it's the best Reader can do.
    Note that when Reader is used to e-sign a document, it gets flattened, but this won't be possible if you need to Reader-enable the form and under certain other conditions.

  • How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn- the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign.

    How can I turn-off the apps which I have opened once in ISO 7.0.2. In previous version of ISO it was easy to turn-off the opened apps by double clicking on home button and then click and hold on respective apps then click on cross sign but in this version I could not do so and my iPad appears slower.

    Close inactive apps
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • Can I get back a file that logic deletes... Well I did but I had thought I saved the file under a different name?

    Hi. I have been using logic pro on the computer at music school... A Mac pro... Anyway, I was recording a friends band. W got some awesome takes down. I was then doing a little post, saved the file as one name and then stared working on it under a new file name. Anyway, logic came up with a splash that asked if I would like to delete the original file, and I clicked yes, as I thought I had saved the session under a different name just earlier. Anyway, I lost everything. Ok... Shirt I thought... But I managed to find everything in the recycle bin. Except one awesome take of an awesome song, I am a little bit heart broken as I've gone though the sessions undo file in quite some detail, but I seem to have lost it. I have access to the file on my Mac at home (MacBook pro, and logic express 8 I think) cool that I can open logic pro files in logic express, but anyway. Anyone want to offer me any solace? I think a solution might be too much to ask for....

    If you were using OSX 10.7 then you could go back to a previous version, but you have overwritten the file.
    Peter

  • If I open a PDF doc in a new tab and then try and close the tab with ctrl-w it will try and close all tabs unless I switch to another tab and back again.

    Running Firefox beta and Adobe Acrobat 10. If I open a PDF document in a new tab, say http://support.avaya.com/css/P8/documents/100146419, and then try and close the tab using ctrl-w, I get the message warning me about closing all tabs. If I switch to another tab and then back to the PDF document and then hit ctrl-w, it will just close that one tab and not all tabs.
    Cheers.

    I've just been playing around and I set dom.ipc.plugins.enabled to true and now it closes the PDF document but not the tab. I have to do ctrl-w again to close the tab. However, leaving that set to true ruins the scroll mouse functionality as Acroread seems to want it all to itself.

  • I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on- and how do I get the show to cycle indefinitely?

    I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on… and how do I get the show to cycle indefinitely?  (I have set the server to NEVER sleep)

    Welcome to the Apple Community.
    Have you also set the Apple TV not to sleep.

  • I backed up my iphone 4 s and then did the up date now i have no contacts how do i get them back

    i backed up my iphone 4 s and then did the up date now i have no contacts how do i get them back?

    Try logging into icloud.comwith you're apple id and see if you're contacts are there.
    Hope this helps

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

  • Hi, my iPhone 4 was stolen two weeks ago, and I called ATT to suspend the service. Today, we were able to trace it and it is under a different name.  What should I do? Should I report to police?

    Hi, my iPhone was stolen two weeks ago, and I called ATT to suspend the service.  Today, we were about to find it using my iPod, and it is now under a different name.  What should I do?  Should I report to police?  I did called ATT again, and they told me that they cannot do anything, since the SIM card might have been replaced.

    Doesn't hurt to call the police. 
    The SIM wasn't replaced; if it were, you wouldn't have been able to locate it.

  • When I go to open lightroom a message pops up and says "lightroom encountered an error when reading from it's preview cache and needs to quit" I have already restarted my computer, that didn't do anything. I then uninstalled and then reinstalled and still

    When I go to open lightroom a message pops up and says "lightroom encountered an error when reading from it's preview cache and needs to quit" I have already restarted my computer, that didn't do anything. I then uninstalled and then reinstalled and still getting the same response.

    Open the folder containing your Lightroom catalog. Locate a folder with the extension .lrdata and delete that folder. Do not delete anything else. Then restart Lightroom. It will start building a new previews folder.

  • I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    Thanks for your response. I do believe I have the information needed for each form on a separate line in Excel. There is a first name, middle name, last name, city, and zip column. And field is entered on a different line for all the information. I'm really stuck.

Maybe you are looking for

  • I need help with proper DNS setup for 10.5.8 Server

    I'm administering a 10.5.8 server that I sold and setup about a year ago. I'm experiencing issues with getting iCal server to be happy. All of the clients are running 10.5.8, but I'm running 10.6.1. I've heard from others that connecting iCal in 10.6

  • Group Header not displaying on conditional suppression

    I have a report that is used to audit controlled medications.  It is grouped by patient and then by medication order ID.  I only want to display the data when the patient has had their medication ordered more than once.  I have a test patient who is

  • I have vertical lines when printing even after changing cartridges.

    I have vertical lines when printing even after changing cartridges. There are no lines when copying, faxing or scanning, only printing. I have cleaned the glass, scanner and even dusted where the toner cartride slides in.  Any suggestions?

  • Color of JTabbedPane inner Border

    Hello, I like to change the Color of JTabbedPane inner Border. I have attached an example. If you run it, you can see a gray border. I like to make it green. thanks in advance! import java.awt.*; import java.awt.event.*; import javax.swing.*; import

  • Custom New/Edit Forms not mobile supported

    Hi All - I have created custom New/Edit Form in SPD. When I am trying to browse these in mobile view - It is giving error: The following error is not mobile supported: /lists/<listname>/<customnewform.aspx> In PC view it opens the same URL properly w