Solved

Clear contents of cells with an empty string

Posted on 2011-09-22
2
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

628 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