+ Reply to Thread
Results 1 to 4 of 4

Help with VBA scripting

  1. #1
    Registered User
    Join Date
    12-11-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Help with VBA scripting

    Is it possible to create a VBA script that automaticly hides rows or tables in excel sheets when a specific value appears in a specific cell? Any help would be greatly appreciated as I have tried to write the code myself but have no idea where to start.
    Last edited by jiminic; 12-11-2006 at 11:26 PM.

  2. #2
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    Here's an example... you'll have to modify or pillage off it to suit your needs.

    Please Login or Register  to view this content.
    Scott

  3. #3
    Valued Forum Contributor
    Join Date
    07-11-2004
    Posts
    851
    for example hide row 2 if cell a1 = 1

    If Cells(1, 1).Value = 1 _
    Then Cells(2, 1).EntireRow.Hidden = True
    not a professional, just trying to assist.....

  4. #4
    Registered User
    Join Date
    12-11-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    86

    Thank you Both!

    Thank you Both!

+ 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