I have searched Microsoft technet and tried the suggestions I found
there, read all similar problems I could find here (I found four) but
nothing seems to help. I have also tried it on a machine with XP and
Office 97 SP2. The macro works fine there without modification and
LabVIEW ends without error and I can even close my Excel document
without errors, but when I try to quit Excel I get the same error
message as always, only a different address.
I have tried to terminate the refnums in different order, inserted a
delay and so on, but nothing seems to help. I still believe the error
is related to LabVIEW, since my macro runs without error when launched
from Excel, but I encounter the same error if the macro is launched
from Excel with LabVIEW open in the background, even without open
vi:s.
I have run out of ideas, and even if I am able to create the reports,
it doesn't feel good when Excel crashes every time. Any help would be
much appreciated.
Thanks
Try looking at this answer posted a while ago it may help.