VBA File crashes when closing after save every time on 2007 only

Bengo

Board Regular
Joined
Apr 14, 2010
Messages
202
Good morning,

I have created a form with serveral userforms. Essentially it performs a costing calculation then gives the user the option to log the results in a table on the same page, looking for the next available empty row.

Nothing in the code asks to save or close the workbook at any point

I can add several costings to my table and save the file fine. However when i try and close the workbook in Excel 2007 it crashes (encounted unexpected error....) and recovers. It keeps the changes I had saved and continues to work properly until i save and close again. If i close without saving it does not crash

I have tried this on several PCs, all those with 2007 crash, all those with 2010 work fine...

All was working ok in 2007 when i just had the costing forms in use, it only started to crash once I had added the "copy-details-to-table" feature.

I was going to try and step through the code to see where it went wrong, but it's not whilst the code runs that there is an issue, it's afterwards upon closing.

Has anyone got any advice or seen this before? I've seen a couple of threads on similar issues to this but none have replies as yet.

Any guidance would be much appreciated!!

Thank you
Ben
 

Bengo

Board Regular
Joined
Apr 14, 2010
Messages
202
Have carried out further searches and whilst this seems to be a common issue I cannot find any solid explanation...
 

Bengo

Board Regular
Joined
Apr 14, 2010
Messages
202
Going to try once more folks! My searches have so far been fruitless! Even if no solution can be offered without seeing the code etc.. then a pointer as to the origin of the problem would be amazing!

Thanks all
 

Forum statistics

Threads
1,081,864
Messages
5,361,746
Members
400,654
Latest member
Pinaki Chatterjee

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top