May people on the web have asked the same questions (How to hide rows in Excel?) may times. The way to hide the rows in this example is using the SendKeys method to send the shortcut key to the Excel application. The shortcut key to hide the rows in Excel is the combination of Ctrl and 9 keys. Therefore, to hide the selected rows the VBA code should be SendKeys "^9".
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: