ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Buttons and macros (https://www.excelbanter.com/new-users-excel/136138-buttons-macros.html)

Richardisa1

Buttons and macros
 

I have an excel file with about 20 sheets in it. To save time trying to
find the correct sheet needed I have a front sheet with macros to take
the user to the sheet they need to use. What I would like to know is
this? Can I put buttons on the page so that users can hit the relevant
button to run the relevant macro? If it is possible how do I do it?

I appreciate this is probably a basic thing but I am relatively
inexperienced.

Any help would be appreciated.




--
Richardisa1

Billy Liddel

Buttons and macros
 
"Richardisa1" wrote:

I have an excel file with about 20 sheets in it. To save time trying to
find the correct sheet needed I have a front sheet with macros to take
the user to the sheet they need to use. What I would like to know is
this? Can I put buttons on the page so that users can hit the relevant
button to run the relevant macro? If it is possible how do I do it?


Richard

You can use Form Buttons (Insert, Toolbars, forms) or draw a textbox from
the drawing tool icons. On the form buttons you will probably be prompted to
assign a macro. With the text boxes right-click and coose Assign Macro.

You could modify you macro to allow the user to select the sheet from a
single macro

Sub ChooseSheet()
sht = inputbox("Enter the sheet No")
worksheets(sh).select
end sub

Not checked

Peter

Richardisa1[_2_]

Buttons and macros
 

Brilliant. I guessed there was a solution. I've emailed it to my work
email box so I can use it on Monday. Thanks very much.




--
Richardisa1

Billy Liddel

Buttons and macros
 
"Richardisa1" wrote:

Brilliant. I guessed there was a solution. I've emailed it to my work
email box so I can use it on Monday. Thanks very much.


Richard

Thanks for the feedback

Peter


All times are GMT +1. The time now is 11:44 PM.

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