Solved

Clear contents of cells with an empty string

Posted on 2011-09-22
2
156 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

867 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

24 Experts available now in Live!

Get 1:1 Help Now