nismyl
Dec 23, 2010, 04:56 AM
Guys, How are you? I need some help.
I have made a userform that have checkboxs. Each checkbox is representing the name of spreadsheet that a user may export or move to any other worksheet.
Suppose there are three spreadsheets in an excel file. "A, B and C". I have made a userform that shows shows,
Checkbox1 = A
Checkbox2 = B
Checkbox3 = C
CmdButton "Export"
If user will check on "A" and "C". Then only the checked sheets should be selected and exported.
Direct code: Sheets(Array("A","C")).Select
Please help me how should I define such array.
Thanks
I have made a userform that have checkboxs. Each checkbox is representing the name of spreadsheet that a user may export or move to any other worksheet.
Suppose there are three spreadsheets in an excel file. "A, B and C". I have made a userform that shows shows,
Checkbox1 = A
Checkbox2 = B
Checkbox3 = C
CmdButton "Export"
If user will check on "A" and "C". Then only the checked sheets should be selected and exported.
Direct code: Sheets(Array("A","C")).Select
Please help me how should I define such array.
Thanks