Unknown reason for Excel error

Hi,
I have a vba routine that runs fine, and after its run, the spreadsheet operates just fine without any problems.
I then save and close the workbook. Then when I open it, I get the following message.Excel-error.JPG I have no idea what it means, but if i close the error and then save and close the file, it reopens without the error.
Has anyone seen this before?
LVL 1
Stephen ByromWarehouse/ShippingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
is this linked content?
0
Stephen ByromWarehouse/ShippingAuthor Commented:
Hi,
If you mean by linked content that the data is in another workbook, then yes.
The data is not actually linked across the workbooks, but some data is manipulated in one workbook before it copies a section of it to the active workbook.
Hope that helps
0
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
Does your document have tables?

Was it created in a previous version than the one you are using?

Did you lose any data?

Was it originally based on an old template?

Do you have any named ranges that perhaps don't point to valid ranges anymore?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Stephen ByromWarehouse/ShippingAuthor Commented:
Thanks for the speedy response,
Tables no
Same version
Did not lose any data
not from a template.

:)
0
Stephen ByromWarehouse/ShippingAuthor Commented:
Its rather a large workbook,
I can trim it down to bare necessity and attach it if that would help, but it will take a while, as I'm busy at work doing other things at the moment
0
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
If you have named ranges, I suspect they are the culprit ... perhaps you copied and pasted from another workbook (or worksheet), or code did, and inadvertently introduced some named ranges that don't resolve to anything.

Well, they would be removed now ~

When you save, close, and open again, is the error gone?
0
Stephen ByromWarehouse/ShippingAuthor Commented:
Yes,
When I close the file it wants me to save it, so i just save it as is.
I can then open the same file without the error
0
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
Excel doesn't like the same range name being used more than once, so if code is copying a sheet, or range on a sheet, and pasting it to another one, my first guess would be that is why you are getting the error
0
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
in the code that copies and pastes, if VALUES are pasted, the range names will not be pasted too ~
obj.PasteSpecial Paste:=xlPasteValues

Open in new window

WHERE
obj is a variable representing object
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Stephen ByromWarehouse/ShippingAuthor Commented:
Thanks for your time on this.
There were sheets in both workbooks with the same name, and I had already done the paste values thing.
Thanks again
0
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
you're welcome, Stephen ~ happy to help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.