Hi All,
Need a help on resolving the below scenario. I have a column A with Months and Column B with unique products ID's. Each months are having checkbox and i need based on the check box selection, the text box and excel sheet should be updated with the all the products from that specific month. Also once its unchecked, the related products for that month should not be updated in that text box. Can anyone please help to resolve this issue. Below are the details.
[TABLE="width: 200"]
<tbody>[TR]
[TD]MONTH[/TD]
[TD]PRODUCT[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR1[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR2[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR3[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR4[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]PR5[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]PR6[/TD]
[/TR]
[TR]
[TD]JUN[/TD]
[TD]PR7[/TD]
[/TR]
</tbody>[/TABLE]
In userform, i have check box for APR, MAY & JUN. Once i checked the APR Check box, text box1 should get updated with the format by adding semicolon in between like PR1;PR2;PR3;PR4 in text box and in excel sheet, it should get updated with each row. If both apr & may check box selected, text box1 should get updated with PR1;PR2;PR33;PR4;PR5;PR6 along with each row in excel sheet. If Apr check box is unchecked, then i would like to see the text box with only may month entries which is PR5;PR6 and the same in excel sheet.
Please let me know how can we achieve this via VBA
Need a help on resolving the below scenario. I have a column A with Months and Column B with unique products ID's. Each months are having checkbox and i need based on the check box selection, the text box and excel sheet should be updated with the all the products from that specific month. Also once its unchecked, the related products for that month should not be updated in that text box. Can anyone please help to resolve this issue. Below are the details.
[TABLE="width: 200"]
<tbody>[TR]
[TD]MONTH[/TD]
[TD]PRODUCT[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR1[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR2[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR3[/TD]
[/TR]
[TR]
[TD]APR[/TD]
[TD]PR4[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]PR5[/TD]
[/TR]
[TR]
[TD]MAY[/TD]
[TD]PR6[/TD]
[/TR]
[TR]
[TD]JUN[/TD]
[TD]PR7[/TD]
[/TR]
</tbody>[/TABLE]
In userform, i have check box for APR, MAY & JUN. Once i checked the APR Check box, text box1 should get updated with the format by adding semicolon in between like PR1;PR2;PR3;PR4 in text box and in excel sheet, it should get updated with each row. If both apr & may check box selected, text box1 should get updated with PR1;PR2;PR33;PR4;PR5;PR6 along with each row in excel sheet. If Apr check box is unchecked, then i would like to see the text box with only may month entries which is PR5;PR6 and the same in excel sheet.
Please let me know how can we achieve this via VBA
Last edited: