populate if blank otherwise do nothing

I have a specific [large] range of cells which, when the file opens gets populated if the cells are blank. If however these cells are already populated I do not want the code to overwrite what is already there.

Can an expert provide me with the code that will prevent the cells being populated if they already have data in them.

Many thanks
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Saqib Husain, SyedEngineerCommented:
The code you have already does that. If you are facing a problem the please tell us the cell address and we can check.
JagwarmanAuthor Commented:
Hi Saqib Husain, Syed

it works first time, but if you save and close then open again it falls over

Error 1004. No cells were found.
Saqib Husain, SyedEngineerCommented:
In that case, before those lines put

On error resume next

and after the lines put

On error goto 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
JagwarmanAuthor Commented:
so so simple ..... when you know how,

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.