help with excel macro 2003

kwat1

New Member
Joined
Jul 28, 2011
Messages
6
Hello All,

I am familiar with how to a create a simple macro in excel, however say that I have several worksheets and (e.g.) A,B,C,D, etc. Say that tab A is the home page and the other tabs are some other type of info. on the home page i want to create buttons that when i click on them they automatically go to the specific page. say that i want to click the button and go to tab B from the home page. How do i create that type of macro?

thanks in advance!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi, you can start by first creating your desired buttons on your 'homepage'
Then by double-clicking or using click event of the buttons, you can include these kinds of code
Code:
_Click()
    Worksheets("B").Activate
End Sub

This will go to tab B from the 'homepage'
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,503
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top