cell-fill-makro

  • Thread starter Thread starter Andreas Aust
  • Start date Start date
A

Andreas Aust

Hi together,

I need a macro.

I have a column and in this columne there are some empty cells.
And in these cells I want fill with an expression like "this is an empty
cell".

Do you have an idea how I can solve this problem?

Thank you in advance!

Regards Andi
 
Dim rng as Range
On error resume Next
set rng = columns(3).SpecialCells(xlblanks)
On Error goto 0
if not rng is nothing then
rng.Value = "this is an empty cell"
End if
 
Thank you Tom!

It does work!!

Andi

Tom said:
Dim rng as Range
On error resume Next
set rng = columns(3).SpecialCells(xlblanks)
On Error goto 0
if not rng is nothing then
rng.Value = "this is an empty cell"
End if
 

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