Hi All,
Am kinda new to excel and VBA programming but i have done some assignments on it to understand the flow, am trying to achieve a module which has following requirement :
I have a excel workbook which has different Sheets say s1,s2 and s3 it has some data in it, I have a requirement where macro prompts user to enter the sheet(s) number in the prompt, based on the input it should print the data present in the respective sheet(s).
ex: if user gives 1 in prompt it should print data present in s1 and if user gives 1,2 in prompt it should print data present in s1 and s2 in separate output files, Code for printing the data is ready but am confused with the logic how to loop through the prompts and print it in the separate output files, kindly help.
Thanks in advance
Am kinda new to excel and VBA programming but i have done some assignments on it to understand the flow, am trying to achieve a module which has following requirement :
I have a excel workbook which has different Sheets say s1,s2 and s3 it has some data in it, I have a requirement where macro prompts user to enter the sheet(s) number in the prompt, based on the input it should print the data present in the respective sheet(s).
ex: if user gives 1 in prompt it should print data present in s1 and if user gives 1,2 in prompt it should print data present in s1 and s2 in separate output files, Code for printing the data is ready but am confused with the logic how to loop through the prompts and print it in the separate output files, kindly help.
Thanks in advance