Hi
yes - one way, copy and paste the following code into a module sheet in the
workbook of interest (right mouse click on a sheet tab, choose view code,
choose Insert / Module ... paste the following from SUB to END SUB on the
right hand side of the screen) ... adjust the question as appropriate.
Then to link it to a button, create a button (if you use the command button
control off the Forms toolbar the macro dialog box will open up
automatically - choose selectsheet and click OK.
sub selectsheet()
dim gotosheet as string
Do
gotosheet = Inputbox("What is your favourite fruit?","Choose
Fruit","Apples")
Loop Until gotosheet<>""
ActiveWorkbook.Sheets(gotosheet).activate
End Sub
let us know how you go
Cheers
JulieD
"alanad >" <<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I was wondering if there is a way to have Excel prompt the user with a
> question, then open up a worksheet based on the answer to that
> question?
>
> For example, when Excel opens it could ask the user to make the
> appropriate choice about what part of the workbook they want to use,
> then open up the corresponding worksheet....ie. if the user wants the
> "apples" worksheet they could select the apples button and if they want
> the "oranges" worksheet they could select the oranges button and would
> be taken to the appropriate worksheet based on the button they select.
>
>
> ---
> Message posted from http://www.ExcelForum.com/
>