+ Reply to Thread
Results 1 to 5 of 5

Macro to Hide rows based on 'Sum'

  1. #1
    Registered User
    Join Date
    04-05-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    44

    Smile Macro to Hide rows based on 'Sum'

    Hi,

    I want a code to Hide the row if "sum of numbers in columns three thru last column" = 0.

    Following is a code I use to delete a row if that is blank. The difference here is that I dont want to to check first two columns and I want to hide them rather than deleting.

    Can someone help on this...


    Please Login or Register  to view this content.
    Last edited by rakeshplb; 12-27-2009 at 05:04 AM. Reason: Solved

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Macro to Hide rows based on 'Sum'

    You can get a lot of code information by using your macro recorder.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-05-2009
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    44

    Re: Macro to Hide rows based on 'Sum'

    I want to hide rows based on 'sum' of cells in column 3 till last column.
    The code here is based on Count and is for Entire row. I want the code to ignore first two columns.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474

    Re: Macro to Hide rows based on 'Sum'

    Try...

    Please Login or Register  to view this content.

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Macro to Hide rows based on 'Sum'

    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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