ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Select the sheet to the right Q (https://www.excelbanter.com/excel-programming/420728-select-sheet-right-q.html)

Seanie

Select the sheet to the right Q
 
How do I select the sheet to the right of my sheet "Form", I thought
it was something like below, but its not

Thanks


ActiveSheet.Select after:=Sheets("Form")

Daniel.C[_3_]

Select the sheet to the right Q
 
Sheets(Sheets("Form").Index + 1).Select
Daniel

How do I select the sheet to the right of my sheet "Form", I thought
it was something like below, but its not

Thanks


ActiveSheet.Select after:=Sheets("Form")




Peter T

Select the sheet to the right Q
 
Another way

Sheets("Form").Next.Select

there's also .Previous

If in doubt, first do
Sheets("Form").Parent.Activate

Regards,
Peter T



"Seanie" wrote in message
...
How do I select the sheet to the right of my sheet "Form", I thought
it was something like below, but its not

Thanks


ActiveSheet.Select after:=Sheets("Form")




Seanie

Select the sheet to the right Q
 
Thanks works a treat




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

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