+ Reply to Thread
Results 1 to 2 of 2

Macros auto hiding of rows depending on cell content

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    Jerusalem
    MS-Off Ver
    Excel 2003
    Posts
    1

    Macros auto hiding of rows depending on cell content

    i'm new to Excel Macros and i'm trying to find a way in macros to auto hide rows whenever the content of the row is empty and to auto unhide when there are filled, the content of the rows depend on another worksheet, i'm using the IF function to determine whether the rows will be empty or will have content in them,
    so any help would be usefull

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Macros auto hiding of rows depending on cell content

    Put this Event macro in the worksheet code area:

    Please Login or Register  to view this content.

    Because it is worksheet code, it is very easy to install and automatic to use:
    1. right-click the tab name near the bottom of the Excel window
    2. select View Code - this brings up a VBE window
    3. paste the stuff in and close the VBE window
    If you have any concerns, first try it on a trial worksheet.

    If you save the workbook, the macro will be saved with it.


    To remove the macro:
    1. bring up the VBE windows as above
    2. clear the code out
    3. close the VBE window
    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    To learn more about Event Macros (worksheet code), see:

    http://www.mvps.org/dmcritchie/excel/event.htm

    Macros must be enabled for this to work!
    Gary's Student

+ 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