Hi,
I have a spreadsheet that is used to book people on training courses. I have a sub that runs an input box for the person’s name, and then adds that name to the first blank cell of a specified range.
However, I have about 20 training sessions, with one sheet per session. I want to avoid having 20 different subs. It is possible to specify that I want the sub to work with the specified range in the current worksheet.
To further complicate the situation, the specified range for the names could be different sizes for each worksheet, as the maximum number differs for each session. I could add a hidden column to identity the rows that can be used if needed.
Have you any ideas how to use one sub module for all worksheets.
Thanks.
I have a spreadsheet that is used to book people on training courses. I have a sub that runs an input box for the person’s name, and then adds that name to the first blank cell of a specified range.
However, I have about 20 training sessions, with one sheet per session. I want to avoid having 20 different subs. It is possible to specify that I want the sub to work with the specified range in the current worksheet.
To further complicate the situation, the specified range for the names could be different sizes for each worksheet, as the maximum number differs for each session. I could add a hidden column to identity the rows that can be used if needed.
Have you any ideas how to use one sub module for all worksheets.
Thanks.