A form has been designed to dynamically generate checkboxes for all active, visible sheets in the workbook, enabling users to select specific sheets for PDF printing. However, when more than 7 sheets are selected, the process fails with a "Subscript out of Range" (Error 9).
Various attempts have been made to resolve this issue, but the solution for handling more than 7 sheets remains elusive. Assistance is needed to identify the necessary changes in the code to ensure it functions correctly with a larger selection of sheets.
The subroutine responsible for PDF generation can be found under "cmdOk_Click." The file with the module is attached for reference. Any guidance would be appreciated.
Thanks!
PDF_Book1.xlsm![]()
Please Login or Register to view this content.
Bookmarks