Hello,
I am creating a program that involves a page where the user will input data, and the program will then perform the calculation the data and take the user to a final output page. The data that the user will be inputting will also contain parameters, and depending on how many parameters the user has, a different calculation will be performed. With this, I set up two separate final output pages, one for if the user's data has only one parameter, and one where the user has more than one parameter. So far I have been able to create two separate buttons that the user may select, depending on how many parameters they have, however, to make it easier on the user, I want to know if there is a way to make only one button, and however many parameters the user types in, that button will go to the correct worksheet based on a macro. Here is a visual to show what I am looking for:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Parameter Names:[/TD]
[TD]Force[/TD]
[TD](empty)[/TD]
[TD](empty)[/TD]
[/TR]
</tbody>[/TABLE]
When the user pushes a button, it should take them to the one parameter calculation page.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Parameter Names:[/TD]
[TD]Force[/TD]
[TD]Speed[/TD]
[TD](empty)[/TD]
[/TR]
</tbody>[/TABLE]
When the user pushes the same button, it should take them to the multiple parameter calculation page.
So to summarize, assuming, the cell containing parameter names is cell A1, how would I be able to create a single button that will take the user to a different worksheet based on how many parameters the user types into the program? Please let me know.
I am creating a program that involves a page where the user will input data, and the program will then perform the calculation the data and take the user to a final output page. The data that the user will be inputting will also contain parameters, and depending on how many parameters the user has, a different calculation will be performed. With this, I set up two separate final output pages, one for if the user's data has only one parameter, and one where the user has more than one parameter. So far I have been able to create two separate buttons that the user may select, depending on how many parameters they have, however, to make it easier on the user, I want to know if there is a way to make only one button, and however many parameters the user types in, that button will go to the correct worksheet based on a macro. Here is a visual to show what I am looking for:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Parameter Names:[/TD]
[TD]Force[/TD]
[TD](empty)[/TD]
[TD](empty)[/TD]
[/TR]
</tbody>[/TABLE]
When the user pushes a button, it should take them to the one parameter calculation page.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Parameter Names:[/TD]
[TD]Force[/TD]
[TD]Speed[/TD]
[TD](empty)[/TD]
[/TR]
</tbody>[/TABLE]
When the user pushes the same button, it should take them to the multiple parameter calculation page.
So to summarize, assuming, the cell containing parameter names is cell A1, how would I be able to create a single button that will take the user to a different worksheet based on how many parameters the user types into the program? Please let me know.