Excel: Use button to hide/unhide rows based on cell value. Change/toggle button name.

Anonymous
2017-03-08T19:37:05+00:00

After almost four hours of trying to cobble together my own solution (I obviously have failed), I'm turning to the community.

Scenario: a worksheet used to track cost-saving actions includes plan and actuals. The value in Column G is either "Plan" or "Actual". The first "Plan" row is Row 11 (and then every other row is a plan row). I'd like to enhance the worksheet where:

  • the default view does not show the plan rows
  • a button above Column G is named "Show Plan"
  • when the user clicks the "Show Plan" button, the plan rows (11, 13, 15,...) appear AND the button name changes to "Hide Plan."
  • -when the user clicks the "Hide Plan" button, the plan rows (11, 13, 15,...) are hidden AND the button name changes to "Show Plan."

Thanks for your guidance

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2017-03-11T23:56:55+00:00

    Hi Steve,

    Please share any updates at your convenience.

    Thanks,

    Frank

    0 comments No comments