Closed Thread
Results 1 to 5 of 5

VBA to delete rows hidden by filters - broken

  1. #1
    Registered User
    Join Date
    01-12-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    53

    Unhappy VBA to delete rows hidden by filters - broken

    Hello,

    I have a large table with several slicers that filter the document based on entries in different columns. I am looking for a VBA to delete all rows hidden by slicers. Please take a look at the attached spreadsheet; the VBA linked to button on Sheet1 is supposed to delete my hidden rows (3, 4, 6). However, it returns an error in line 22.
    This post is edited due to my non-compliance to the board rules of cross-posting for which I apologize for: the cross post can be found here. I am looking for a VBA to delete in bulk by range and now row by row due to it being very slow on a large table.
    Your help is greatly appreciated.
    Last edited by aldenes; 10-23-2020 at 09:36 PM. Reason: Original not compliant with forum rules

  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,014

    Re: VBA to delete rows hidden by filters

    .
    Untested here :

    Please Login or Register  to view this content.
    Another approach :

    https://stackoverflow.com/questions/...lter-excel-vba

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: VBA to delete rows hidden by filters

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Go to https://www.excelguru.ca/content.php?184 to understand why we ask you to do this.

    No Help to be offered until this request is complied with.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-12-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    53

    Re: VBA to delete rows hidden by filters

    I changed my post and apologize for the non-compliance. Can you please un-restrict my account so that I may download attachments. Thank you!
    Last edited by aldenes; 10-24-2020 at 03:48 PM.

  5. #5
    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,916

    Re: VBA to delete rows hidden by filters - broken

    Closed in favour of the same query posted in Commercial Services.
    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.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Delete rows using filters
    By robert26 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-07-2019, 05:53 PM
  2. Replies: 10
    Last Post: 06-07-2018, 04:16 PM
  3. Replies: 8
    Last Post: 04-25-2017, 03:46 AM
  4. [SOLVED] Use of Three filters and Delete Rows using VBA Code in Excel
    By gbloemke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-01-2013, 03:27 PM
  5. Replies: 4
    Last Post: 06-11-2010, 03:29 PM
  6. filters with hidden rows issue
    By smite0hb in forum Excel General
    Replies: 1
    Last Post: 05-05-2010, 03:22 PM
  7. Replies: 4
    Last Post: 05-19-2008, 05:13 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