+ Reply to Thread
Results 1 to 3 of 3

Deleting rows depending on cell value

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    9

    Deleting rows depending on cell value

    Hi

    I am having real trouble to find away to solve the below problem - any pointers will be greatly appreciated.

    I would like VBA to search column C and delete the 2 Rows above if there is a 2, 4 rows if a 4 etc.
    c

    x
    x
    2
    x
    x
    x
    x
    4
    x
    x
    2

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Deleting rows depending on cell value

    So should the code check for all numbers and delete the rows above it depending on the numbers?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    11-26-2012
    Location
    Kitchener, Ontario, Canada
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Deleting rows depending on cell value

    This basicly what the code should look like. It's based on what you have on your post.

    Please Login or Register  to view this content.
    aelgadi

    > Click Star if I helped. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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