ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Message Box with three options (https://www.excelbanter.com/excel-programming/423373-message-box-three-options.html)

Scott A[_2_]

Message Box with three options
 
Hi. I never work with VBA so I am struggling with what is a very easy problem.

Upon opening a workbook, I would like to be prompted with three options:

1) Go to sheet "A"
2) Go to sheet "B"
3) "No"; basically quit and stay in the tab I am currently in

I currently have a Yes/No routine, but now I have another tab that I have
to consider going to.

Appreciate any help.

FSt1

Message Box with three options
 
hi
for the built in message box, no. it does have multiple options like "OK",
"YES""NO", "Abort""retry""Ignore". but these are not programable.
you would have better luck to create your own custom message box from a user
form using labels for the messages then put some code behind the labels to
"goto" the sheet selected.

regards
FSt1



"Scott A" wrote:

Hi. I never work with VBA so I am struggling with what is a very easy problem.

Upon opening a workbook, I would like to be prompted with three options:

1) Go to sheet "A"
2) Go to sheet "B"
3) "No"; basically quit and stay in the tab I am currently in

I currently have a Yes/No routine, but now I have another tab that I have
to consider going to.

Appreciate any help.



All times are GMT +1. The time now is 03:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com