Results 1 to 5 of 5

To delete all rows after the value in a cell

Threaded View

  1. #1
    Registered User
    Join Date
    06-19-2013
    Location
    brazil
    MS-Off Ver
    Excel 2007
    Posts
    64

    To delete all rows after the value in a cell

    Please, I need some help.
    In a read only file I want to have a button that delete every row after the number in A2, for example.
    If A2=5, then I use the VBA and delete all lines below 5.
    And I can change the number of the last row when I need.
    I know how to make the button, just need the code.

    I've did a search and find:
    http://stackoverflow.com/questions/1...x-in-vba-excel

    That's almost what I want.
    If someone could help me.
    Last edited by dualaudio454252; 03-16-2014 at 03:31 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Find row cell containing specific text, then delete all rows ABOVE that cell
    By ks100 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 02:02 PM
  2. [SOLVED] Delete rows if any cell in Sheet 1 rows matches any cell in Sheet2 column
    By newbie88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2012, 10:26 AM
  3. Delete Rows by Cell Value - Delete sheets w/out prompt
    By Jimmydageek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2010, 02:03 PM
  4. Delete rows where active cell is selected without hardcoding cell
    By alexfortin in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-19-2009, 06:58 PM
  5. Delete Rows based on cell value and then Insert rows alternatively with a formula
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-11-2008, 04:27 PM

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