Deleting entire row

R

Robert Crandal

The following code will delete an entire row:

Target.EntireRow.Delete

Just curious, but if I do NOT have a "Target" or
"Range" variable, is it possible to delete an entire row
using only that row's numerical index?

For example, suppose I want to delete the entire
Row #5. How do I do that?

thanks.
 
W

witek

Robert said:
The following code will delete an entire row:

Target.EntireRow.Delete

Just curious, but if I do NOT have a "Target" or
"Range" variable, is it possible to delete an entire row
using only that row's numerical index?

For example, suppose I want to delete the entire
Row #5. How do I do that?

thanks.


rows(5).delete ?
 
R

Robert Crandal

witek said:
rows(5).delete ?

Okay, I will give that a try. I'm sure it will work.

I was just overthinking this too much because I was
thinking that I neded to convert the numerical row
index into a "range" variable and then call the
EntireRow.Delete function.

thanks
 
W

witek

Robert said:
Okay, I will give that a try. I'm sure it will work.

I was just overthinking this too much because I was
thinking that I neded to convert the numerical row
index into a "range" variable and then call the
EntireRow.Delete function.

thanks

everything which gives single row as output will work
 

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