+ Reply to Thread
Results 1 to 5 of 5

Sorting Filters for Zeros And delete The rows containing zeros

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Sorting Filters for Zeros And delete The rows containing zeros

    Hi All,

    I used to use the below code when i am creating Pivot tables. After filtering my data, it has to create the pivot.

    In the attached file , I have to delete 0's with positive and negative. I have applied the below VBA for filter. It is deleting my entire data and not giving the pivot when the data does not have zeros. If my data is having any zeros, It is working fine. I know that code going wrong in the Last one (used Range). I don't know What property i Have to use for not deleting all the data. Kindly advice.

    Please Login or Register  to view this content.
    Thanks In Advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Sorting Filters for Zeros And delete The rows containing zeros

    Maybe.
    Please Login or Register  to view this content.
    Kind regards, Harry.

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Sorting Filters for Zeros And delete The rows containing zeros

    Hi Harry,
    Thanks a lot for your support. May i know What does 7 mean in filter and what does 12 mean in specialcells.

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    818

    Re: Sorting Filters for Zeros And delete The rows containing zeros

    Hello,

    7: Operator:=xlFilterValues
    12: xlcelltypevisible

  5. #5
    Registered User
    Join Date
    06-21-2012
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    81

    Re: Sorting Filters for Zeros And delete The rows containing zeros

    Thanks Harry

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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