+ Reply to Thread
Results 1 to 3 of 3

Creating a Command Button/Macro to hide and display rows in a Column based on value

Hybrid View

  1. #1
    Registered User
    Join Date
    03-17-2015
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    9

    Creating a Command Button/Macro to hide and display rows in a Column based on value

    I am trying to write what should be 2 simple Macros.

    In column A there would be Command Button 1 and Command Button 2.

    When you select Button 1 a macro would be run that hides any row that does not have a value in Column D.

    When you select Button 2 those rows that are hidden would be unhidden.

    A sample file is attached.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Creating a Command Button/Macro to hide and display rows in a Column based on value

    see attached workbook
    Attached Files Attached Files
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    03-17-2015
    Location
    Hawaii
    MS-Off Ver
    2010
    Posts
    9

    Re: Creating a Command Button/Macro to hide and display rows in a Column based on value

    Wow ... that is perfect ... thanks Pierre!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Command Button to Hide rows based on a date range in Column A
    By mhewitson15 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-24-2014, 06:21 PM
  2. command to display specific rows based on value in one column
    By thedunna in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-25-2013, 07:28 AM
  3. Macro command button to hide empty rows
    By djauncey in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2012, 10:42 AM
  4. Need help creating a button to hide rows based on value of cell.
    By J-Fly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2012, 07:22 PM
  5. Hide display command button based on conditions
    By mrdata in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-30-2007, 11:16 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