+ Reply to Thread
Results 1 to 3 of 3

Deleting multiple rows

  1. #1
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    786

    Deleting multiple rows

    For example, if I want to delete first 5 rows.

    Range("A1:A5").EntireRow.Delete should work fine.

    However, I would like to know if there is alternative way to do it. I would like to write something as below, but syntax is wrong, how to fix it? The code Rows looks more meaningful to me.
    Rows(1:5).EntireRow.Delete

    Rows(1).EntireRow.Delete works fine when deleting first row only.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,160

    Re: Deleting multiple rows

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    786

    Re: Deleting multiple rows

    Thank you. I forgot quotation mark.

+ 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. Deleting multiple rows based on one rows criteria
    By knm5800 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2020, 11:27 AM
  2. [SOLVED] VBA for deleting multiple rows
    By tdf2437 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2014, 12:22 PM
  3. Deleting multiple rows
    By brian0412 in forum Excel General
    Replies: 1
    Last Post: 03-15-2013, 04:18 PM
  4. Deleting rows, Multiple criteria
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2011, 10:51 PM
  5. Replies: 4
    Last Post: 06-11-2010, 03:29 PM
  6. [SOLVED] deleting multiple rows
    By Pablo in forum Excel General
    Replies: 4
    Last Post: 01-27-2005, 04:06 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