Excel cell format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am editing a spreadsheet which the original user used cell formatting to
indicate postives. It looks very pretty!! Is there a function, macro I can
use,as
it contains over 3000 row, to replace the shaded (filled but blank) cells
with yes?
 
set rng = Columns(5)
On Error Resume Next
set rng1 = Intersect(rng.specialcells(xlBlanks),Activesheet.UsedRange)
rng1.Value = "Yes"
On Error goto 0
if rng1 is nothing then msgbox "No cells found"
 

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

Back
Top