Thanks very much for your reply sijpie..
I don't need that yellow parts. I only need a summary table. The thing is there will be many workbooks and each workbook might have different number of worksheets. Macro should calculate Minimum,Maximum and 3 quartiles for defined range. Also there is a specific region I call it Z in this case. I need macro to pull the value for Z from defined range and paste into summary table. The other thing is how users would specify the range in the process..As you said marking first and last row of the column might be the preferable option. In that case, if there are some blank rows in that range macro wouldn't get the blank row as the last row of the range would it?
I really appreciate for your help.