Article ID: 213610 - Last Review: May 21, 2007 - Revision: 5.2 How to delete every other row on an Excel worksheetThis article was previously published under Q213610 For a Microsoft Excel for the Macintosh version of
this article, see
142528
(http://support.microsoft.com/kb/142528/
)
. SUMMARY This article contains a sample Microsoft Visual Basic for
Applications macro that you can use to delete every other row in a selected
range on a Microsoft Excel worksheet. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To use the following macro, set up
an Excel workbook as follows:
Note If you have a list of data that contains multiple columns, select only the first column of data, and then run the macro. | Article Translations
|
Back to the top
