Solved

Clear contents of cells with an empty string

Posted on 2011-09-22
2
155 Views
Last Modified: 2012-05-12
Dear Experts:

I would like to CLEAR the CONTENTS of all the cells in colum 'F' where the entered formula has produced an empty string "".

Help is much appreciated. Thank you very much in advance.

Regards, Andreas

0
Comment
Question by:AndreasHermle
2 Comments
 
LVL 24

Accepted Solution

by:
StephenJR earned 500 total points
ID: 36579148
This perhaps?
Sub x()

Dim r As Range

For Each r In Columns(6).SpecialCells(xlCellTypeFormulas)
    If r.Value = "" Then r.Clearcontents
Next r

End Sub

Open in new window

0
 

Author Closing Comment

by:AndreasHermle
ID: 36579225
Hi Stephen,

that's it. Thank you very much for your help.

Regards, Andreas
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now