vba help goto sheet

RickeyS

Board Regular
Joined
Jun 23, 2006
Messages
222
Hi,
How do you write a statement to goto a sheet? I have a macro that works the way I want (it hides some sheets and makes other sheets visible) but I want a certain sheet to be active at the end of the macro. How do I write that statement to make a certain sheet the active sheet?

Thanks
Rick
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

RickeyS

Board Regular
Joined
Jun 23, 2006
Messages
222
Never mind I figured it out.

Sheets("mysheet").Select

Thanks
Rick
 
L

Legacy 51064

Guest
You don't need to select

Sheets("mysheet").Activate
 

Watch MrExcel Video

Forum statistics

Threads
1,123,268
Messages
5,600,624
Members
414,394
Latest member
mahendar

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
Top