+ Reply to Thread
Results 1 to 2 of 2

Delete Remaining Rows after Sort applied

  1. #1
    Registered User
    Join Date
    05-04-2017
    Location
    Bartlesville, OK
    MS-Off Ver
    2010
    Posts
    9

    Delete Remaining Rows after Sort applied

    I am using "Mid" formula to extract the term "Open" into a new cell, sorting by "Open" and want to delete all data that is sorted and that data only. However, running this code I am getting a run time error '424': object required. I simply can't get past, any advice? Below is the code, everything works up to and including the red text, the blue text is where I get my error.

    Sorry all, I'm a newbie to the forum and to VBA and just learning both. Apologies for any inaccuracies or omissions in my postings.

    Sub OpenShiftDelete()
    '
    ' OpenShiftDelete Macro
    '

    '
    Please Login or Register  to view this content.
    End Sub
    Last edited by icqa_analyst; 06-06-2019 at 10:44 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Delete Remaining Rows after Sort applied

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 11
    Last Post: 11-29-2016, 01:00 PM
  2. [SOLVED] Help required - User input for text search and delete remaining rows
    By ssss2005 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-20-2015, 11:06 AM
  3. Macro to filter 2 columns and then delete remaining rows
    By jimmisavage in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-12-2014, 11:01 AM
  4. [SOLVED] Delete rows, then reorganise remaining data
    By Steve_123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-10-2014, 04:08 AM
  5. Code will delete first 2 rows but not the remaining 10
    By 00Able in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2011, 07:16 AM
  6. Find data and delete remaining rows (For each loop)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2009, 11:45 AM
  7. Count remaining rows after autofilter has been applied
    By walshy06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-06-2006, 06:40 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