I have some data in worksheet-1. In the other worksheet-2 I am reading some fields from worksheet-1. (in the worksheet-2 I have every record-row from worksheet-1, just not all fields).I am going to sort worksheet-2 based on the value in the column B (this I am doing in VBA, the workshet is write protected, nobody can delete anything)
The user has entered the number value in field A1, (example A1=10, or 20,30 etc..) before sorting has been iniciated , telling how many rows want to analyse in worksheet-2 after sorting. I want to hide the rest of the rows based on this number. So entering 20, after I sorted all rows, VBA will leave just visible, first "n" rows, the rest are hidden.
What woudl be the command for that in VBA?
The user has entered the number value in field A1, (example A1=10, or 20,30 etc..) before sorting has been iniciated , telling how many rows want to analyse in worksheet-2 after sorting. I want to hide the rest of the rows based on this number. So entering 20, after I sorted all rows, VBA will leave just visible, first "n" rows, the rest are hidden.
What woudl be the command for that in VBA?