Results 1 to 11 of 11

(SOLVED) Hiding rows based on a cell value that comes from a formula

Threaded View

Dbouwheer (SOLVED) Hiding rows based on... 03-26-2014, 06:27 AM
Leon V (AW) Re: Hiding rows based on a... 03-26-2014, 06:39 AM
Dbouwheer Re: Hiding rows based on a... 03-26-2014, 06:46 AM
Leon V (AW) Re: Hiding rows based on a... 03-26-2014, 06:53 AM
Dbouwheer Re: Hiding rows based on a... 03-26-2014, 06:56 AM
Leon V (AW) Re: Hiding rows based on a... 03-26-2014, 07:24 AM
Dbouwheer Re: Hiding rows based on a... 03-26-2014, 07:52 AM
Leon V (AW) Re: Hiding rows based on a... 03-26-2014, 08:04 AM
Solus Rankin Re: Hiding rows based on a... 03-26-2014, 08:09 AM
Dbouwheer Re: Hiding rows based on a... 03-26-2014, 08:14 AM
Solus Rankin Re: (SOLVED) Hiding rows... 03-26-2014, 08:15 AM
  1. #1
    Registered User
    Join Date
    03-25-2014
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up (SOLVED) Hiding rows based on a cell value that comes from a formula

    Dear all,

    I am quite new to VBA but i am a fast learner and hope some of you can help me with the following:
    I have searched dozens of forums and theads, but i cant seem to find an answer.

    In my file I am trying to hide Rows (33:41) based on a cell [G4] value (HIDE,UNHIDE) or (1,2) doesn't really matter which one.

    Now i have used the following code:

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Range("I4").Value = "HIDE" Then
    Rows("33:41").EntireRow.Hidden = True
    ElseIf Range("I4").Value = "UNHIDE" Then
    Rows("33:41").EntireRow.Hidden = False

    End If
    End Sub¸

    The problem that I have is that it works as long as I manually type in the value, but this value is generated by a formula therefor nothing happens.

    Hope you guys understand what i am asking

    Thanks in advance !
    Last edited by Dbouwheer; 03-26-2014 at 08:15 AM. Reason: SOLVED

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Hiding rows based on cell value.
    By Metalgijs in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-12-2013, 03:08 AM
  2. Hiding rows in one tab based on cell value in another
    By hoffmt28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2013, 09:27 AM
  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 value in another cell
    By sahar in forum Excel General
    Replies: 0
    Last Post: 10-12-2011, 10:27 AM
  5. Hiding Rows Based based upon cell value being blank
    By leelee23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2007, 04:48 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