ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CONVERTING AN EMPTY TEXT BACK TO BEING BLANK (https://www.excelbanter.com/excel-programming/367942-converting-empty-text-back-being-blank.html)

excel guru

CONVERTING AN EMPTY TEXT BACK TO BEING BLANK
 
My problem is with converting an empty text back to a blank cell. "" IS NOT A
BLANK CELL BUT AN EMPTY TEXT.if a cell is "" then isblank will be false

Bernie Deitrick

CONVERTING AN EMPTY TEXT BACK TO BEING BLANK
 
Select the cells that may have the "" in them and use

Dim myCell As Range
For Each myCell In Selection
If myCell.Value = "" Then myCell.Value = ""
Next myCell


Note that this will remove formulas that return "" You could use this to prevent deleting
formulas:

Dim myCell As Range
For Each myCell In Selection
If Not myCell.HasFormula Then
If myCell.Value = "" Then myCell.Value = ""
End If
Next myCell

HTH,
Bernie
MS Excel MVP


"excel guru" <excel wrote in message
...
My problem is with converting an empty text back to a blank cell. "" IS NOT A
BLANK CELL BUT AN EMPTY TEXT.if a cell is "" then isblank will be false





All times are GMT +1. The time now is 08:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com