+ Reply to Thread
Results 1 to 6 of 6

Macro for hide the complete row based on 4 columns value

  1. #1
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Macro for hide the complete row based on 4 columns value

    Dear Experts,

    Please find here attached workbook, where i am expecting the macro to hide the complete row if Column H, J, L, & N are 0 by using the formula for a particular row by using the command button for "Hide Blank Rows". But if any of the above said columns any value exist then it won't be hidden by clicking on the command button.

    Request to you kindly do help me. Thank you for your precious support and valuable expertise.

    Regards,

    Neilesh
    Attached Files Attached Files

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

    Re: Macro for hide the complete row based on 4 columns value

    Probably a simple algorithm would do the trick

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: Macro for hide the complete row based on 4 columns value

    Quote Originally Posted by davesexcel View Post
    Probably a simple algorithm would do the trick

    Please Login or Register  to view this content.
    Dear Expert,

    Thank you so much for your precious expertise and valuable support. But unfortunately it is hiding the rows upto column N which is mismatching my rest other columns which are upto R. I do have columns upto from H to R (Used Cells are from H9 till R265). I do apologies for the same that i forget to mention that part in my requirement.

    Dear Expert, I do have few graphs as well after column R, So is to possible while hiding the rows Graphs will remain at the same place.

    So would like to request to you kindly do amend your provided code and resend. Thank you once again for your precious expertise and valuable support.

    Regards,

    Neilesh

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

    Re: Macro for hide the complete row based on 4 columns value

    You can amend the code yourself to suite your requirements.
    Your original question said H,J,L,N. You can delete cells and shift up, I don't believe you can hide cells the same way.
    Last edited by davesexcel; 08-01-2017 at 09:09 AM.

  5. #5
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: Macro for hide the complete row based on 4 columns value

    Quote Originally Posted by davesexcel View Post
    You can amend the code yourself to suite your requirements.
    Dear Expert,

    I am not so well versed with VBA, So as per the provided all my filled cells details, if you can please do amend at your end and provide the same would be a great help. Thank you once again for your precious support and valuable phase.

    Regards,

    Neilesh

  6. #6
    Forum Contributor Neilesh Kumar's Avatar
    Join Date
    05-26-2016
    Location
    INDIA
    MS-Off Ver
    2013 & 2016
    Posts
    848

    Re: Macro for hide the complete row based on 4 columns value

    Quote Originally Posted by davesexcel View Post
    Probably a simple algorithm would do the trick

    Please Login or Register  to view this content.
    Thank you so much dear expert. It worked perfectly. Thank you once again for your precious expertise and valuable phase.

    Regards,

    Neilesh

+ 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. [SOLVED] Macro to Hide Columns based on Drop-Down
    By Darkly in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2015, 12:47 PM
  2. Macro to hide columns based on date cell
    By Jehanim009 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-02-2015, 09:34 AM
  3. Can a Macro hide columns by name and name a sheet based on a cell value?
    By jgomez in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2013, 07:27 AM
  4. Macro to hide columns based on a cell value
    By polcen in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-20-2012, 10:42 AM
  5. [SOLVED] Macro to hide columns based on contents
    By samcdavies in forum Excel General
    Replies: 1
    Last Post: 06-22-2012, 04:56 AM
  6. [SOLVED] Macro to hide complete row
    By pauldaddyadams in forum Excel General
    Replies: 4
    Last Post: 05-31-2012, 07:37 AM

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