I have three sheets in my workbook named "Range", "Plan", and "Print".
If "1st Range" is selected in "Print!C6" cell of "Print" sheet, then "Range!C7:F7" data of "Range!C6:V150" range is copied and pasted in "Plan!A7:D7" range of "Plan" sheet.
In this way, after nine columns, "Range!C8:F8" data should be copied and pasted in the "Plan!J7:M7" range of the "Plan" sheet. In this way, nine consecutive columns of "Range!C7:F150" vertical data should be pasted in the "Plan" sheet.
Also, filter the non-blank rows of the "Range!G7:V7" range of the "Range" sheet and paste the data corresponding to the "Range!G6:V6" range into the "Plan!A8:I9" range of the "Plan" sheet. In this way, nine consecutive columns should be pasted in the "Plan" sheet next to the "Range" sheet.
Thus, if "1st Range" is selected in "Print!C6" cell of "Print" sheet, then "Range!C6:V150" should be used.
And if "2nd Range" is selected in "Print!C6" cell of "Print" sheet, then "Range!AB6:AU150" must be used.
And if "3rd range" is selected in "Print!C6" cell of "Print" sheet, then "Range!BA6:BT150" should be used.
Bookmarks