+ Reply to Thread
Results 1 to 6 of 6

macro that will hide/unhide rows based on data validation selection

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    3

    macro that will hide/unhide rows based on data validation selection

    Hello,

    I am new to VBA and Macros, and have been unable to figure out a code that will automatically hide or unhide the rows that contain the sales person name.

    I have attached an example of my sheet. Any suggestions are greatly appreciated.

    Thanks,
    Megan
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: macro that will hide/unhide rows based on data validation selection

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-15-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: macro that will hide/unhide rows based on data validation selection

    Thank you for respondng. I am unabl to get the code to work. When I copy the code above into the sheet and change the Sales rep, there is no change to the data below.

  4. #4
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: macro that will hide/unhide rows based on data validation selection

    ok press ctrl + f11, double click the sheet you want it to work on in the left hand panel. paste this code in there

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    Charlotte
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: macro that will hide/unhide rows based on data validation selection

    That worked perfectly, Thank you

  6. #6
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: macro that will hide/unhide rows based on data validation selection

    You are very welcome.

+ 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