Excel generated errors after completion of VI

Hello everybody..
I created a VI that using activeX it opens an excel file from desktop, renames the worksheet "sheet1", and closing as well as saving the changes. It works ok, then  i open the excel file to see the changes , and when i close it it gives an error message "excel has created errors and will be closed bywindows" etc,etc.
I guess it's something to do with the order i close the automation references, but after a lot of tries no luck...
I am using LV7.1 and MS office excel 2000.
If anyone can help me please do...
Thanx a lot for your time guys...
Yiannis
I attach the vi if anyone wants to try it out!!
Attachments:
problem.vi ‏64 KB

Hi all. I have almost the same problem again, but now I can’t
tackle it for the moment.
I created this vi which is part of another vi, and it does
this:
It creates a new excel at the first run, name it month.xls (June,
July etc.) and it renames the worksheet according to the date e.g. 25 June
2008. It closes all refnums and applications. Then in 20 seconds (for debug
reasons) it checks the date. If the PC clock is set to another date it checks
the month if it’s the same it adds another worksheet to the previous excel, if
its another month it creates a new excel and so on. If anyone wants to run it
he has to change the date in this 20 seconds that the loop waits.
Problem: Excel stays in memory and you have to kill it from
Task manager to open the created excel. I can’t see the problem since I close
all references and quit the application at the end. I post this question if
anyone wishes to help. Thank you very much in advance guys.
PS. LV7.1 MS Excel 2000 (with service packs).
Cheers
Yiannis
Attachments:
excelmemoryprob.vi ‏123 KB

Similar Messages

  • HT201442 My iPhone 4s hasnt been used in over 6 months. Everytime I plug it into my computer and iTunes, it says it requires a restore and update. It then comes up with an error after completing the download for the restore and update (takes around 10 min

    My iPhone 4s hasnt been used in over 6 months. Everytime I plug it into my computer and iTunes, it says it requires a restore and update. It then comes up with an error after completing the download for the restore and update (takes around 10 minutes).Someone help me as I'm using the original iPhone 3 at the moment and it won't even take an ios 7 update!

    Just to confirm on the screen of the iPhone do you see the itunes symbol with a cable pointing up to it?. If you do then your iPhone is inrecovery mode and would require you to restore it.
    Now first you want to make sure iTunes is up to date and the cable you are using is not damaged. You also want to make sure iTunes is up to date.
    Now if you get an error message then follow the article below to find out what causes the issue:
    http://support.apple.com/kb/TS3694
    In terms of the iPhone 3G that is definitely not able to update to iOS 7. Only the iPhone 4 and larter can update to iOS 7.

  • Help needed - Excel macro error after Reader 11 update.

    I wrote the following section of an Excel 2010 macro to open a selected pdf file with Adobe Reader, then copy all text to the clipboard & then return to Excel to paste &
    process the data. The macro works with Adobe Reader 10.  After I updated to Adobe Reader 11, Reader 11 will open but I get an error message of file not found. I've gone back &
    forth between Reader 10 & 11 from clean installs & the problem stays with 11. The only thing I changed in the macro is the path for where Abobe Reader is located. The only
    Adobe Reader preferences I change from the clean install setup is I set the Default View to Single Page continuous.  Any help would be appreciated.
    'Get the data file (pdf) to open
    fileToOpen = Application.GetOpenFilename("PDF Files (*.pdf), *.pdf")
    If fileToOpen = False Then Exit Sub
    Application.Wait Now + TimeSerial(0, 0, 1)
    'Filepath for Adobe Reader 10 program for Windows 64bit systems
    MyPath = "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"
    'Open PDF file with Adobe Reader
    Shell MyPath & " " & fileToOpen, vbNormalFocus
    'Wait for Adobe to Open file
    Application.Wait Now + TimeSerial(0, 0, 5)
    'Select all text [Ctrl-a](Adobe Reader set for Single Page Continuous)
    SendKeys ("^a")
    'Copy selected text [Ctrl-c]
    SendKeys ("^c")
    Application.Wait Now + TimeSerial(0, 0, 2)
    'Turn off screen updating
    Application.ScreenUpdating = False
    Here's the only difference in the macro for Adobe Reader 11
    'Filepath for Adobe Reader 11 program for Windows 64bit systems
    MyPath = "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"

    Hi,
    I do not see any reason for this to not work.
    Is there any difference between the preferences for RX and RXI. Please go to "edit" -> "Preferences" -> "Security(Enhanced)" and uncheck "Enable protected mode at startup".
    Are you able to open any pdf from command line with the same command:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"  <<PDF_FILE>>
    Thanks,
    Amish.

  • Excel macro error after deploying in Weblogic

    Halo,
    I have written excel macros and it is working fine.
    but if the same file if i try to open from hyperlink after deploying in Weblogic server , I get the error
    "error occured initializing the VBA libraries.
    If Microsoft Visual Basic for Applications (VBA) was not installed, or was set to Install on first use,
    (advertised, or set to install on demand) you may receive this error message.
    Depending on the mode of installation used and the rights of the user to change current settings,
    it is possible to install VBA through Control Panel, Add/Remove Programs, Microsoft Office, Add or Remove
    features. If Visual Basic for Applications is not listed as an installable feature of Office, the administrator
    of your system may have disabled it so it is impossible for you to install it. If VBA is not installed,
    it is impossible to run VBA applications/projects on this computer. "
    1. Even though Excel VBA application is installed in my machine , why am i getting this error.??
    2. I would like to know is there any way to open the excel file even though if the excel software is not installed in client machine??
    Appreciate your help.
    Thanks.

    Hi,
    I do not see any reason for this to not work.
    Is there any difference between the preferences for RX and RXI. Please go to "edit" -> "Preferences" -> "Security(Enhanced)" and uncheck "Enable protected mode at startup".
    Are you able to open any pdf from command line with the same command:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"  <<PDF_FILE>>
    Thanks,
    Amish.

  • Excel file error after upgrade from 2010 to 2013

    Hi there,
    I did the upgrade from 2010 (Enterprise) to 2013. The excel files are not opening giving error.
    ULS Log: "Unexpected error when trying to access service settings in the configuration database. Make sure the proxy for this service application is a member of the default proxy group for the active web application. Error = ExcelServerWebServiceApplication.Local:
    Could not get the web application associated with this context. This indicates that the Excel Server service is not properly registered or provisioned.."
    Question : Do I need to create New Excel Service Application separately on SharePoint 2013 Server?
    I followed this link for upgrade
    http://technet.microsoft.com/en-us/library/jj839719.aspx but it doesn't say anything for Excel SA.
    Note: I have plan to configure separate Office APP Server to give user access the documents on iPad/iPhone. Should I need to do any configuration related to this error on Office App Server?
    Please advice.
    Thanks,
    Khushi

    Hi Khushi ,
    Yes, you need to create New Excel Service Application separately on SharePoint 2013 Server. Due to  only the following service applications have databases that can be upgraded when you upgrade from SharePoint
    Server 2010 to SharePoint Server 2013:
    Business Data Connectivity service application
    Managed Metadata service application
    PerformancePoint Services service application
    Search service application
    Secure Store Service application
    User Profile service application
    Attaching and upgrading these databases configures these service applications. Settings for other services will have to be reconfigured when you upgrade.
    Reference:
    Services upgrade overview for SharePoint Server 2013
    For configuring Office Web Apps Server , you can refer to the blog:
    http://stevegoodyear.wordpress.com/sharepoint-2013-build-guide/office-web-apps-2013-server-install-and-configuration/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Excel File Error After Using SaveAsDialog in C#

    Hello,
    I have a project where I am trying to use SaveFileDialog. My code runs fine and saves the file to the directory that I choose. The problem is when I try to open the file I receive an error from Excel stating
     “Excel cannot open the file Test_File.xlsx because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file”
     Is there something happening in my code that is corrupting the file during the save process?
    I can’t figure out why I am getting this error. Any help will be greatly appreciated.
    I am working in VS 2013 Pro. and using C#. Here’s my code:
    private
    void btnSave_Click(object
    sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 =
    new
    SaveFileDialog();           
    saveFileDialog1.Title = "Save As";          
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 2;
    saveFileDialog1.RestoreDirectory = true;           
    if (saveFileDialog1.ShowDialog() ==
    DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) !=
    null)
    // Code to write the stream goes here.
    saveFile.Close();
    Thank you,
    Dave
    David Young

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using ClosedXML.Excel;
    using DocumentFormat.OpenXml;
    using System.IO;
    namespace LoanOrig_FDIC_Codes
    public partial class Form1 : Form
    SqlCommand sqlCmd;
    SqlDataAdapter sqlDA;
    DataSet sqlDS;
    DataTable sqlDT;
    SqlCommand sqlCmdCnt;
    public Form1()
    InitializeComponent();
    //BEGIN BUTTON LOAD CLICK EVENT
    private void btnLoad_Click(object sender, EventArgs e)
    string sqlCon = "Data Source=FS-03246; Initial Catalog=ExtractGenerator; User ID=MyID; Password=MyPW";
    //Set the 2 dateTimePickers to today's date
    DateTime @endDate = End_dateTimePicker.Value.Date;
    DateTime @startDate = Start_dateTimePicker.Value.Date;
    //Validate the values of the 2 dateTimePickers
    if (endDate < startDate)
    MessageBox.Show("End Date must be greater than or equal to the Start Date OR Start Date must be less than or equal to the End Date ", "Incorrect Date Selection",MessageBoxButtons.OK,MessageBoxIcon.Error);
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    return;
    //End of date validation
    string sqlData = @"SELECT AcctNbr,
    CurrAcctStatCD,
    Org,
    MJAcctTypCD,
    MIAcctTypCD,
    NoteOriginalBalance,
    ContractDate,
    FDICCATCD,
    FDICCATDESC,
    PropType,
    PropTypeDesc
    FROM I_Loans
    WHERE CAST(ContractDate AS datetime) BETWEEN @startdate AND @enddate ORDER BY ContractDate";
    SqlConnection connection = new SqlConnection(sqlCon);
    SqlCommand sqlCmd = new SqlCommand(sqlData, connection);
    sqlCmd.Parameters.AddWithValue("@startDate", startDate);
    sqlCmd.Parameters.AddWithValue("@endDate", endDate);
    sqlDS = new DataSet();
    sqlDA = new SqlDataAdapter(sqlCmd); //SqlAdapter acts as a bridge between the DataSet and SQL Server for retrieving the data
    connection.Open();
    sqlDA.SelectCommand = sqlCmd; //SqlAdapter uses the SelectCommand property to get the SQL statement used to retrieve the records from the table
    sqlDA.Fill(sqlDS, "I_Loans"); //SqlAdapter uses the "Fill" method so that the DataSet will match the data in the SQL table
    sqlDT = sqlDS.Tables["I_Loans"];
    //Code section to get record count
    sqlCmdCnt = connection.CreateCommand();
    sqlCmdCnt.CommandText = "SELECT COUNT(AcctNbr) AS myCnt FROM I_Loans WHERE ContractDate BETWEEN @startDate AND @endDate";
    sqlCmdCnt.Parameters.AddWithValue("@startDate", startDate);
    sqlCmdCnt.Parameters.AddWithValue("@endDate", endDate);
    int recCnt = (int)sqlCmdCnt.ExecuteScalar();
    txtRecCnt.Text = recCnt.ToString();
    btnExport.Enabled = true;
    btnSave.Enabled = true;
    //End of code section for record count
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["I_Loans"];
    dataGridView1.ReadOnly = true;
    //Reset both dateTimePickers to todays date
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    //END BUTTON LOAD CLICK EVENT
    //BEGIN BUTTON EXPORT CLICK EVENT
    private void btnExport_Click(object sender, EventArgs e)
    { //ClosedXML code to export datagrid result set to Excel
    string dirInfo = Path.GetPathRoot(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes");
    if (Directory.Exists(dirInfo))
    var wb = new XLWorkbook();
    var ws = wb.Worksheets.Add(sqlDT);
    ws.Tables.First().ShowAutoFilter = false;
    wb.SaveAs(@"\\FS-03250\users\dyoung\LoanOrig_FDIC_Codes\LoanOrig_FDIC_Codes_" + DateTime.Now.ToString("yyyy-MM-dd") + ".xlsx");
    MessageBox.Show("File has been exported to U:\\LoanOrig_FDIC_Codes", "File Exported", MessageBoxButtons.OK, MessageBoxIcon.Information);
    //End of ClosedXML code
    else
    MessageBox.Show("Drive " + "U:\\Visual Studio Projects\\LoanOrig_FDIC_Codes" + " " + "not found, not accessible, or you may have invalid permissions");
    return;
    //END BUTTON EXPORT CLICK EVENT
    private void Form1_Load(object sender, EventArgs e)
    //Set dates to be today's date when the form is openend
    Start_dateTimePicker.Value = DateTime.Today;
    End_dateTimePicker.Value = DateTime.Today;
    private void Form1_Load_1(object sender, EventArgs e)
    // TODO: This line of code loads data into the 'dataSet1.I_Loans' table. You can move, or remove it, as needed.
    this.i_LoansTableAdapter.Fill(this.dataSet1.I_Loans);
    private void iLoansBindingSource_CurrentChanged(object sender, EventArgs e)
    //BEGIN THE SAVE AS PROCESS
    private void btnSave_Click_1(object sender, EventArgs e)
    Stream saveFile;
    SaveFileDialog saveFileDialog1 = new SaveFileDialog();
    saveFileDialog1.Title = "Save As";
    saveFileDialog1.Filter = "Excel Files (*.xlsx)| *.xlsx";
    saveFileDialog1.FilterIndex = 1;
    saveFileDialog1.RestoreDirectory = true;
    if (saveFileDialog1.ShowDialog() == DialogResult.OK)
    if ((saveFile = saveFileDialog1.OpenFile()) != null)
    // Code to write the stream goes here.
    saveFile.Close();
    private void btnExit_Click(object sender, EventArgs e)
    this.Close();
    //END THE SAVE AS PROCESS
    Here is the code for the whole project up to this point
    David Young

  • FTP send to VAN process generates error after rename attempt on file already moved to an archive.

    I am sending an EDI file to a server managed by a VAN (This same process handles multiple other FTP locations, first VAN), what is happening is that after the file is dropped the FTP adapter does a rename and tries to add the file extension .edi to the file.
    The problem is that the VAN moves the file as soon as it is received to an archive and by the time the adapter tries to rename the file is gone and an error is sent back to BizTalk.
    The file is in the VAN fine and according to them they don't care about missing a file type.
    The problem is that I start getting the suspended messages in BizTalk and I have a manual process that tries to resend suspended messages causing duplicate files to be sent.
    I tried to issue a "QUIT" on the "AFTERPUT" property but this did not work, how do I stop BizTalk from trying to rename the file or tell BizTalk not to send a "fail" message back.
    Thanks   
    Bico Bielich

    Duplicate thread, see here:
    https://social.msdn.microsoft.com/Forums/en-US/e7130b69-22c9-45b3-b369-9a207cbc16b5/error-renaming-file-being-dropped-in-ftp-server-of-a-van-?forum=biztalkgeneral

  • Crystal 8.5 Export to Excel 2003 Error after Excel SP3 install

    Post Author: tecboy
    CA Forum: Exporting
    Just upgraded Office 2003 to SP3. When exporting a Crystal 8.5 report to Excel 2003..I now receive an error message...file error data may have been lost crystal...i click ok then the Excel spreadsheet opens. all the data appears to be there. I have tried switching between extented and not and also tried switching between application and disk file...same results...SP3 for Office changed something...Just trying to determine what i need to correct to make this error go away...

    Post Author: tecboy
    CA Forum: Exporting
    Yes and no.....I replaced the export dll for Excel with a newer one...the newer dll removed the error message but the layout of the exported crystal reports was screwed up...so i went back to older version. I think it may have something to do with the default speadsheet or tab name that Crystal Reports creates that SP3 for Excel doesnt like...If i recall...i ran into something similar when i was on Crystal 7 and upgrade to Office 2003....

  • Destroying tooltips generates error after 4

    I am working on an instruction page for a Flex 3 app. I have
    a clickable list of navigation tool names; descriptions for each
    tool appear when the user clicks on the name. I also want to
    display a tooltip for the navigation tool when the user clicks.
    Code summary (see attached code for details):
    Set variables for the 7 tool tips.
    Call function to destroy any tooltip that exists.
    On listitem click: 1. Call function to distroy any tooltip
    that exists. 2. Call function to create the approprate tooltip.
    The application works through 3 calls to the destroy
    function. On the fourth call (3rd listitem click), I get the
    following error:
    ArgumentError: Error #2025: The supplied DisplayObject must
    be a child of the caller.
    at flash.display::DisplayObjectContainer/getChildIndex()
    at mx.managers::SystemManager/
    http://www.adobe.com/2006/flex/mx/internal::rawChildren_getChildIndex()[C:\autobuild\3.2.0 \frameworks\projects\framework\src\mx\managers\SystemManager.as:2113
    at
    mx.managers::SystemChildrenList/removeChild()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\managers\SystemChildrenList.as:132]
    at
    mx.managers::SystemManager/removeChildFromSandboxRoot()[C:\autobuild\3.2.0\frameworks\pro jects\framework\src\mx\managers\SystemManager.as:4418]
    at
    mx.managers::ToolTipManagerImpl/destroyToolTip()[C:\autobuild\3.2.0\frameworks\projects\f ramework\src\mx\managers\ToolTipManagerImpl.as:1259]
    at
    mx.managers::ToolTipManager$/destroyToolTip()[C:\autobuild\3.2.0\frameworks\projects\fram ework\src\mx\managers\ToolTipManager.as:436]
    This error is related to the number of times the destroy
    function is called, not to which tooltip create function was called
    or to the order of the listitem clicks.
    Any ideas?

    "nnmmooppqq" <[email protected]> wrote in
    message
    news:gq6hou$rcr$[email protected]..
    > Thanks for the reply. I can't just let Flex handle it
    because the exact
    > text
    > and the tool tip to be visible is handled through an XML
    feed. So I have
    > to
    > read XML and set variables based on that content.
    I don't understand why you think this is incompatible with
    allowing the
    framework to do what it was designed to do.
    > Again, my problem is that the fourth time the
    destroyToolTip method is
    > called,
    > I get an error. Any ideas?
    Yes. Tooltips aren't intended to be used this way, so you're
    probably doing
    something that's running afoul of the way things are supposed
    to be done and
    everything is exploding in your face.

  • Error in completing the update after finishing downloading.

    error in completing the update after finishing downloading. I tried to update my iphone 4 after it finished the downloading it says error in connection? I tried it on 4 times on different pc's but problem still the same. Can anyone help me with this? Even i tried to unlock my iphone but all in vain.:(

    hi,
    Thanks for the reply. I did not note down the error number, but ill try to do it again if its comes again will let u know. but the problem is same whether i unlock my cell or update it to 5.0.1.

  • HT1937 I tried to update software on my Iphone 3 from Itunes after i managed to sync phone to laptop but then i had a message (error 1015) after completing saying itunes has detected an iphone in recovery mode, i am now unable to do anything with my phone

    I tried to update software on my Iphone 3 from Itunes after i managed to sync phone to laptop but then i had a message (error 1015) after completing saying itunes has detected an iphone in recovery mode, i am now unable to do anything with my phone, please help!!

    You generally get that error code on a jailbroken phone ?
    If it is Jailbroken then I am afraid you will get no help here.

  • How to stop execution after generating error message in an error handler?

    I am working on ALSB 3.0.I have a proxy consisting of 2 stages in a pipeline pair. I have error handlers for each of the stages. The first stage contains schema validation action. Whenever the schema validation fails,control should transfer to error handler.
    The error handler has a publish action and in request action I am calling an xquery transformation to generate error message.Publish action should publish message to a jms based business service configured. My questions are:
    1. After getting into the error handler, the first alert msg configured inside request action (of publish action) is generated.Subsequent actions to generate error xml message and to replace the contents of errorXml in $body are not executed.And so no error message is generated or published.
    2. I have also configured a reply with failure. Inspite of that,the control shifts to next stage in request pipeline and execution continues.
    Can anyone tell me where I need to do the corrections.
    Cheers.
    Edited by: arrajago on Jun 15, 2009 11:55 PM

    Got the answer.Generate error xml outside publish action.Replace action has to placed inside Publish's request action.To stop execution,use Reply action after Publish.

  • After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    After receiving a Generator error and prompt to restart. I restarted Photoshop and the app disappeared off my computer. How do I get it back. The cloud widget says it is all up to date?

    CC desktop lists applications as "Up to Date" when they are not
    -http://helpx.adobe.com/creative-cloud/kb/aam-lists-removed-apps-date.html

  • I'm getting  an error message after completing an update.  Help?

    I'm getting  an error message that says "This version of iTunes has not been correctly localized for this language.  Please try running the English version." after completing an update.  Help?

    Thanks for your help! I imported the table into Muse, then exported the site as html and opened it in Dreamweaver. I should've tried that in the first place but gave up when I couldn't edit it in Muse. I didn't know you could edit the html right in Muse. Also, my styling and the images I was using weren't showing up in Muse but once I opened it in Dreamweaver, everything fell into place. AND I could edit it! My client needs to edit this page every week, so I needed to be sure she could do that. She doesn't use Muse but does use Dreamweaver. At this point, I think I'll leave it alone and not try to style it with inline css. Maybe when I get a little more time, I'll try it. I just don't want to mess things up now that the're working.

  • I updated to IOS 6 and received an error message after completing. Now my phone is in restore mode. Is there a way around restoring my phone completely?

    I updated to IOS 6 and received an error message after completing. Now my phone is in restore mode. Is there a way around restoring my phone completely?

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    To minimise loss... Connect to iTunes on the computer you Usually Sync with and Restore from the most recent Backup...
    http://support.apple.com/kb/HT1414
    If necessary Place the Device into Recovery mode...
    http://support.apple.com/kb/HT1808

Maybe you are looking for