+ Reply to Thread
Results 1 to 6 of 6

hide rows ?

  1. #1
    Registered User
    Join Date
    10-09-2007
    Posts
    63

    hide rows ?

    is it possible to hide rows with VB??
    let's say
    if a specific cell = a then hide
    if b, then unhide etc???
    do i use the module or the worksheet to enter the code?

    what coding do i need?

    consider the fact that i am a newbie!!!!!!..i am just getting started with VB.. need to gain an understanding of what happens and how!

    pls help
    Last edited by tsatsos007; 02-06-2008 at 05:56 AM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    How do you wabnt to trigger this, on a cell change or run a macro to hide/unhide the rows?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    10-09-2007
    Posts
    63
    on a cell change. ( i have put a list validation in a cell...so when smone chooses from the list i want the format to chng)
    also i am trying to figure out some part of the coding..but i think i am doing stupid things!

    I went to Sheet1 which is the one with the cell and i named the sub formatchg.. (maybe that is wrong too)

    then i attempted to chng a cell once the cell has a specific string in it! ( in the meanwhile it should hide some rows...but that s step 2)

    so my wrong effort
    Please Login or Register  to view this content.
    i am laughing myself because i know things are not that simple!
    Last edited by tsatsos007; 02-06-2008 at 06:45 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Please use Code tags when posting code in the Forum.

    You do not enter macros in the worksheet module.

    Your code example doesn't hide any Rows.

    You do not enter range references like this

    Please Login or Register  to view this content.
    Use either

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-09-2007
    Posts
    63
    ok i corrected as a 1st step:
    Please Login or Register  to view this content.

    I am not sure if automacros will help but i copied it there because the code works if i press the play in the editor every time as i noticed!!!!! I want it to run over and over again if the cell changes!!!!

    help

  6. #6
    Registered User
    Join Date
    10-09-2007
    Posts
    63
    pls help me!

+ 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