+ Reply to Thread
Results 1 to 4 of 4

Delete every alternate row

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Delete every alternate row

    Hi ,

    I want to know how I delete every alternate blank row in my work sheet . I guess VB script should help me .Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Delete every alternate row

    Something like this?

    Sub DeleteAlternateRows()
    StartRow = 14
    EndRow = 108
    Interval = 2
    For N = EndRow To StartRow Step -Interval
        Rows(N).Delete
    Next N
    End Sub
    Martin

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    81

    Re: Delete every alternate row

    I worked fine . Thank you so much . I'm verymuch interested in learning VBA . Can you guide me to some free links where I can start learning from basics .

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Delete every alternate row

    Having started learning VBA a long time ago, I'm not very familiar with current resources for starting. However, I would recommend visiting forums such as this and seeing what folk are asking and the responses they are receiving. This is a bit unstructured but will give you an insight into all sorts of VBA solutions.

    Good luck

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1