Delete rows from activecell

  • Thread starter Thread starter al
  • Start date Start date
A

al

Hi All,

I know this is a simple one, but i've been trying to figure out how to
delete the next ten rows from the activecell, using a minimum amount of
coding. I.e. in 1 line.
The delete method should shift lines up.

I've tried stuff like : Rows.[R:R[10]].Delete thinking of using the R1C1
format, but that doesn't work

Can anyone give a few hints?

Cheers,
Al.
 
RANGE(ACTIVECELL.Offset(1),ACTIVECELL.Offset(10)).Delete
SHIFT:=XLUP

rgds

Rog
 
Cheers Rog,
That helps heaps.

Al.


Rog said:
RANGE(ACTIVECELL.Offset(1),ACTIVECELL.Offset(10)).Delete
SHIFT:=XLUP

rgds

Rog



-----Original Message-----
Hi All,

I know this is a simple one, but i've been trying to figure out how to
delete the next ten rows from the activecell, using a minimum amount of
coding. I.e. in 1 line.
The delete method should shift lines up.

I've tried stuff like : Rows.[R:R[10]].Delete thinking of using the R1C1
format, but that doesn't work

Can anyone give a few hints?

Cheers,
Al.


.
 
Another

ActiveCell.Offset(1,0).Resize(10).EntireRow.Delete

--
Regards,
Tom Ogilvy


al said:
Cheers Rog,
That helps heaps.

Al.


Rog said:
RANGE(ACTIVECELL.Offset(1),ACTIVECELL.Offset(10)).Delete
SHIFT:=XLUP

rgds

Rog



-----Original Message-----
Hi All,

I know this is a simple one, but i've been trying to figure out how to
delete the next ten rows from the activecell, using a minimum amount of
coding. I.e. in 1 line.
The delete method should shift lines up.

I've tried stuff like : Rows.[R:R[10]].Delete thinking of using the R1C1
format, but that doesn't work

Can anyone give a few hints?

Cheers,
Al.


.
 

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