Change an empty cell back to a blank cell ...

L

LarryLev

I have a spreadsheet with a large expanse of empty cells. However,
because I used a vlookup command and copied out the results as their
values, then returned the results to the same locations, cells that
APPEAR empty do NOT register as blank. Any sugesstions how I can return
the empty cells to blank status without checking each one by hand?
 
L

LarryLev

sorry, but I guess I was not clear. Some cells have data that I want to
retain. I only want the empty cells to revert to blank.
 
P

Pops Jackson

I just did not read your message carefully enough.

This seems to work. Of course, you will need to tailor it to your specs.

Sub findempties()
Range("A2").Select
Do
If ActiveCell <> "" Then
ActiveCell.Offset(0, 1).Activate
Else
ActiveCell.Clear
ActiveCell.Offset(0, 1).Activate
End If
Loop
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top