How to delete specific row from sheet?

  • Thread starter Thread starter Sirritys
  • Start date Start date
S

Sirritys

Hi,

How this differs from all other posts like this is that I want a
function that deletes certain row, like "1" or "100", by given row
number. Not with specific criteria.

Something like this. =IF(something;deleteRow(3);0)

So what I want, is that deleteRow(3) =)

Thanks for help,

-Sirritys
 
No worksheet function can delete a row.
You will have to use a VBA Sub fort that.

HTH
 
Can I call VBA sub from sheet, without running it with alt+f8?

-Sirritys


Ardus Petus kirjoitti:
 
No, but you can have VBA ran by a Worksheet event procedure, like
Worksheet_Change
That proc can check wheter a condition is met, and then delete a row.

HTH
 
As Ardus says, you need VBA to do what you want. So when do you want this
to happen. Maybe when you enter something in some column or some row or
some area? Or maybe when you click on a button? When you decide, post back
with more info about the layout of your data. HTH Otto
 

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