HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Automatically Hide Rows based on Cell Value - Macro for Beginner

177,743 views November 13, 2018 4:28

Watch on YouTube
ChannelCaripros HR Analytics

Description from the creator

Want to learn how to design a salary structure? Check: caripros.com/design-salary-structure-with-regre…
FREE template for my video: Excel for HR - Create Annual Employee Salary Increase Template from Scratch. You can download and try it out yourself here: bit.ly/2MLLdb7

FREE actual workbook for my video "Split a Master Spreadsheet into Multiple Sheets with 1 click - VBA for Beginner". You can download and try it out yourself here: bit.ly/2UmeX2v

New course Launched! I created it to show you step-by-step how to design a salary structure with regression analysis in Excel. Check out the detail here:
caripros-hr-analytics.teachable.com/p/design-sa…

Topic: Excel Macro - How to Automatically Hide Rows based on Cell Value
Scenario: You want to automatically hide rows/content when you select certain value in a specified cell
Function: Macro

***Macro Code for Automatically Hide Rows based on Cell Value***
Private Sub Worksheet_Change(ByVal Target As Range)
ActiveSheet.Activate
If Not Application.Intersect(Range("C5"), Range(Target.Address)) Is Nothing Then
Select Case Target.Value
Case Is = "Canada": Rows("19:25").EntireRow.Hidden = True
Rows("7:18").EntireRow.Hidden = False
Case Is = "India": Rows("19:25").EntireRow.Hidden = False
Rows("7:18").EntireRow.Hidden = True
End Select
End If
End Sub

Related Video:
How to Automatically Hide Columns based on Cell Value: youtu.be/-ymG3jHS-Tg

******Follow-up Consulting Services******
If you have specific question regarding your issue, you can email me at the email here goo.gl/WejijZ Note that there will be a fee of US$200 charged for solving your issue. The turnaround is within 24 hours. Any follow-up issue in 3 days will also be answered with no charge. Payment link: paypal.me/caripros

******More Videos in Playlists******
Power BI for Beginners: bit.ly/3ivKitD
Power BI for Advanced Users: bit.ly/3lE9zmO
Excel for HR goo.gl/JdeVnd
Excel for HR - Master Class goo.gl/LYfq2f
Excel Macro - Beginner goo.gl/Yae5nc
Excel Macro/VBA - Splitting a Master File goo.gl/m8CHya
Excel Macro/VBA - Auto-hide Rows or Columns bit.ly/2Mzteb5
Excel Charts Data Visualization goo.gl/2ao6BP
Excel Vlookup Function goo.gl/kP2Wpz
Excel Pivot Table Function goo.gl/rukkPs
Excel Array Function goo.gl/i4sQH8
Excel Index and Match Function goo.gl/i7VGU4
Excel Solver/Goal Seek Functions goo.gl/FTkTnj
Excel Cell Formatting Solutions goo.gl/gpa6MY
HR Analytics - Merit Matrix goo.gl/Koy7co
HR Analytics - Salary Structure goo.gl/uZBnFa
Excel Tricks goo.gl/TeqGDw
Excel Troubleshooting goo.gl/bdY5by
Fun HR Topics goo.gl/7zVg8h

For more successful stories, view at: caripros.com/index.php/success-stories/

#ExcelforHR#HRAnalytics#Excel#HR

About this tutorial

Caripros HR Analytics published this 4:28 video tutorial on November 13, 2018. It has been watched 177,743 times on YouTube.

Duration
4:28
Published
November 13, 2018
Views
177,743
Likes
767

Tags

Share

This tutorial in other languages