Use
Sheets(#).Rows(#).EntireRow.Hidden = True
replacing the # with the required numbers for the sheet and the row to be hidden.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
We have a workbook that we would like to hide rows on one worksheet based on multiple criteria on another worksheet. Basically we would like the user to choose a client name and then fill in various fields on the main worksheet. The code will need to check the name of the client and then based on whether the other fields are blank or contain an number it will need to hide various rows on the other worksheet.
Any ideas?
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.
Use
Sheets(#).Rows(#).EntireRow.Hidden = True
replacing the # with the required numbers for the sheet and the row to be hidden.