+ Reply to Thread
Results 1 to 3 of 3

Easy macro to hide rows

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    US
    MS-Off Ver
    Excel 2007
    Posts
    63

    Easy macro to hide rows

    Dear VBA Gurus,

    I need help with a small macro.

    Based on value of cell (A15) i.e. 1 or 2, rows 15,16,17 & 18 need to get hidden.

    So if the value of cell A15=1 then hide rows 15,16,17 &18

    But if the value of cell A15=2, then unhide rows 15,16,117 & 18.

    Thanks for your help
    Rahul

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Easy macro to hide rows

    try this
    Please Login or Register  to view this content.
    But I suggest to put the value in any other row as if the value was 1 then rows 15 will be hidden
    so you can't change the value of A15
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Forum Contributor
    Join Date
    04-24-2012
    Location
    Karlstad, Sweden
    MS-Off Ver
    Excel 2016
    Posts
    232

    Re: Easy macro to hide rows

    Please Login or Register  to view this content.
    1. Reply to thread and inform if suggestion was helpful or not
    2. Click on the star (=Add Reputation) if you think someone helped you
    3. Mark [SOLVED] to this thread if solution was found. (On Menu "Thread Tools" > "Mark this thread as solved")

+ 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. Macro help applying formula to dynamic number of rows for different files (s/b EASY)
    By yankeekid86 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-20-2014, 04:38 PM
  2. Need help creating macro to hide rows based upon whether 1 of 3 rows have data
    By BigEdJr in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-17-2014, 02:58 PM
  3. [SOLVED] Macro to hide all rows with a zero
    By CFlack8472 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-30-2013, 09:06 AM
  4. [SOLVED] How to quick & easy to hide and show column in excel..?
    By herukuncahyono in forum Excel General
    Replies: 2
    Last Post: 07-27-2013, 01:42 AM
  5. Replies: 0
    Last Post: 05-10-2013, 12:04 PM
  6. Using check boxes to hide and un-hide rows with drop down lists within rows
    By Sparky_Chris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2012, 07:22 AM
  7. Macro to Hide and Unhide Rows but still be able to insert rows
    By majasmi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2011, 09:25 PM
  8. help finding an easy macro to hide rows
    By carloslp in forum Excel General
    Replies: 0
    Last Post: 04-06-2005, 05:13 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