need help creating a code that will rerun for multiple samples within one file.

currently working on a classified project which involves specific data calculations. I'm stuck with trying to configure the code so that I could get it to work with other samples within that one file. I currently have the code working for 1 sample.