+ Reply to Thread
Results 1 to 6 of 6

Hiding Rows Automatically on a different sheet based on formula result

  1. #1
    Registered User
    Join Date
    05-25-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    2

    Hiding Rows Automatically on a different sheet based on formula result

    Hi,

    This is my first post and I just joined this forum. I am working on a spreadsheet that has a tab (Deliverables) and based on the sum of a formula in another tab (General Information) Cell L14, I need to hide different rows (in Deliverables). I need this to happen automatically whenever the sum changes in L14 on General Information. By the way I am a novice with VBA so please be gentle!

    Thanks in anticipation

    Audi1959

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Hiding Rows Automatically on a different sheet based on formula result

    Welkom to the forum.

    You get better help if you add (post) an excel file, without confidential information.

    Please also add the expected result manualy in you file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Winterville, NC
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Hiding Rows Automatically on a different sheet based on formula result

    This is definitely possible with some simple VBA and I'm still a novice with VBA myself. But like @oeldere said, it would be easier if we could see an example. Here's some code where I was hiding rows A4:D6 based on the value of A4.

    Please Login or Register  to view this content.
    I have this code in the "This Workbook" object in Developer because I want it to happen to all my worksheets in the workbook. If you only want this to happen on one sheet, the code should go on that worksheet object....or in a module where you could run it from the Developer toolbar.

    Sorry for all my notes in the code.....I write a TON of notes to myself since I'm still so new to writing code!



    If you found this post to be helpful, or if it at least brought a smile to your face, please say "Thank You" by clicking Add Reputation. Thank you!

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Hiding Rows Automatically on a different sheet based on formula result

    If you have data on the same rows that would become hidden if the rows were hidden but you don't want that data hidden, you could hide the data by using Conditional Formatting to just "white-out" the rows (to the limits that you want) so that any other data on the worksheet on the same rows will not be hidden.

    Conditional Formatting rule....and format the text as WHITE.

    Select the data to have rows "hidden" then go to Conditional Formatting, New Rule, Use formula.... and enter this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The enclosed file shows what I mean. Rows are not actually hidden but masked so as to not be readily read.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    05-25-2015
    Location
    Melbourne, Australia
    MS-Off Ver
    2013
    Posts
    2

    Red face Re: Hiding Rows Automatically on a different sheet based on formula result

    Thanks for your quick response. I have a spreadsheet that I will attach where I inserted your code but it doesn't work. I've obviously done something wrong. In a nutshell, when the solution is Simple Solution (on the Solution Tab), i need to show the Simple Solution table on the Deliverables TAB. Other tables are to be hidden. This needs to continually update automatically as the Solution type changes. How do I attach a file here........

    Thanks - Here is the workbook
    Attached Files Attached Files
    Last edited by audi1959; 05-25-2015 at 11:41 PM.

  6. #6
    Forum Contributor
    Join Date
    07-25-2012
    Location
    Winterville, NC
    MS-Off Ver
    Excel 2013
    Posts
    141

    Re: Hiding Rows Automatically on a different sheet based on formula result

    Click "go advanced" when you are replying and there are attachment options there.

+ 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. Hiding Rows based on a cell Value that is a result of a formula
    By erydius in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2014, 08:30 PM
  2. [SOLVED] Automatically Hiding rows based on checkboxes
    By Jake Bierly in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2012, 06:08 PM
  3. Hiding Rows based on Formula result
    By Viscount_Grey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-21-2011, 08:59 AM
  4. Hiding rows based on cell result
    By BaldySlaphead in forum Excel General
    Replies: 8
    Last Post: 12-15-2006, 11:57 AM
  5. Hiding column based on formula result.
    By Casey in forum Excel General
    Replies: 1
    Last Post: 04-13-2005, 11:36 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