Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to delete the even rows?

I am a newbie.

I am not familiar with the VBA

Any one can tell me how to do that?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How to delete the even rows?


Ìì·½ wrote:

I am a newbie.

I am not familiar with the VBA

Any one can tell me how to do that?


Hi,

Not sure how you access this newsgroup, but if you have access to
Google (www.google.com) you can search this (and other) usenet groups
very easily... You can for example put "delete even rows" in the search
box for this group (try
http://groups.google.com/group/micro...el.programming to
get to this group first) and you will get a couple of hits right away.

Try this approach first, then if you can't find the answer to your
question write another post here and I'm sure you will get plentiful
help!

Regards,

/impslayer, aka Birger Johansson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to delete the even rows?

Hi Ìì·½,

I am not familiar with the VBA


For a non-programmatic solution, in the first cell of a helper column insert
the formula:

=ISODD(ROW())

Drag this formula down as far as required.
Autofilter the helper column using FALSE as the filter criterion
Delete the filtered even rows.

If you want a re-usable programmatic solution, turn on the macro recorder
and then run the above manual procedure. This will provide base code which
can be adapted for general application.

If you require assistance with such adaptation, post back.

---

Regards,
Norman



"Ìì·½" wrote in message
...
I am a newbie.

I am not familiar with the VBA

Any one can tell me how to do that?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How to delete the even rows?

in an empty column, (assume F), in F1 put the formula
=mod(row(),2)

then drag fill down the column for as far as you have data.

Now select the column and do Data=Filter=Autofilter

in the dropdown that appears in F1, select 0

Now only the even rows will be visible. Click on F2, then hold down the
shift key and click on the last visible row that you want deleted

then do Edit=Delete and select entirerow. Then do Data=Filter=Autofilter
(to turn off the filter) and the even rows should be gone

--
regards,
Tom Ogilvy


"Ìì·½" wrote in message
...
I am a newbie.

I am not familiar with the VBA

Any one can tell me how to do that?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to delete the even rows?

Hi Ìì·½,

A possible downside to my suggestion, but not to Tom's solution, is that it
requires that the Analysis ToolPak be installed.

It is preferable, and much simpler, therefore, to use the natively available
Mod function!


---
Regards,
Norman



"Norman Jones" wrote in message
...
Hi Ìì·½,

I am not familiar with the VBA


For a non-programmatic solution, in the first cell of a helper column
insert the formula:

=ISODD(ROW())

Drag this formula down as far as required.
Autofilter the helper column using FALSE as the filter criterion
Delete the filtered even rows.

If you want a re-usable programmatic solution, turn on the macro recorder
and then run the above manual procedure. This will provide base code which
can be adapted for general application.

If you require assistance with such adaptation, post back.

---

Regards,
Norman



"Ìì·½" wrote in message
...
I am a newbie.

I am not familiar with the VBA

Any one can tell me how to do that?








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to delete the even rows?

Thank you all

I am very appreciated that you provided so many ways.

The problem has solved

Thanks a lot


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hpw do I delete multiple empty rows found between filled rows? Bill Excel Worksheet Functions 2 November 15th 09 07:12 PM
How to Delete empty rows in excel in b/w rows with values Dennis Excel Worksheet Functions 3 August 28th 07 04:15 PM
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows Scott Excel Worksheet Functions 0 December 13th 06 01:25 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette[_4_] Excel Programming 2 September 21st 04 02:40 PM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"