sorry without losing the formula you mean the value of the formula? else explain a bit more about it
Main Topics
Browse All TopicsI have a workbook with quite a few sheets which require user input. I want a quick way (using VBA) to clear user input without touching formulae. Ideally I don't want to get into defining ranges as the sheets can change often. I was using ".SpecialCells(xlCellTypeC
The background colour of the input cells are a different colour to the formulae, and they are "unlocked" - is there any way I can use these attributes in Specialcells, or in some other fast way to select and clearcontents?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi.
You best bet is probably use this code below to take advantage of the different background color of the input cells. Assume A1:Z100 covers all the cells in your worksheet, you background color is yellow.
Dim c As Range
For Each c In Range("A1:Z100").Cells
If c.Interior.ColorIndex = 6 Then c.ClearContents
Next
It is very fast to finish this operation. Let me know if it works for you.
Business Accounts
Answer for Membership
by: bruintjePosted on 2003-09-01 at 03:37:58ID: 9260795
>>>but will not work if the user enters a formula
rmulas, xlNumbers).ClearContents
what do you mean do you need to remove formulas too?
then use
.SpecialCells(xlCellTypeFo