+ Reply to Thread
Results 1 to 3 of 3

Excel Delete rows between two specific cells

  1. #1
    Registered User
    Join Date
    12-04-2018
    Location
    bangalore
    MS-Off Ver
    2010
    Posts
    1

    Excel Delete rows between two specific cells

    Need a help, I wanted to delete all the rows between two cells containing a specific text.

    For example: Cell B16 contain text "Description" and B28 contain text "Transportation". Now i wanted to delete all the rows in between the Cell "Description" and "Transportation". Need a VBA code for this.
    Note: Text "Description" always remains in B16. However, text "Transportation" keeps changing based on the file contents.

    Thanks a lot in advance.
    Punith

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,765

    Re: Excel Delete rows between two specific cells

    Try

    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: Excel Delete rows between two specific cells

    Thread moved to VBA

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to delete cells and rows with specific Characters using VBA
    By priyadharshane in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 01-25-2019, 01:20 PM
  2. Delete all rows with empty cells in a specific column
    By afridelle in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2019, 03:14 PM
  3. [SOLVED] Delete NOT filtered Rows having non specific dates from a Column Cells
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2018, 08:31 AM
  4. Excel VBA to delete rows with specific text
    By Ratu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2017, 08:18 PM
  5. [SOLVED] VBA to allow users to delete specific rows with locked cells on protected sheets
    By JT12345 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-13-2015, 02:46 PM
  6. How to auto delete all the cells and rows at specific time ?
    By ryan4646 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-22-2013, 09:44 AM
  7. delete duplicate rows - looking at specific cells
    By wheelscpa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2008, 07:07 PM

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