ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to change the ActiveSheet tab ("Plan1") (https://www.excelbanter.com/excel-programming/309419-how-change-activesheet-tab-plan1.html)

Paulo de Arruda Borelli[_2_]

How to change the ActiveSheet tab ("Plan1")
 
How can I change the active sheet's tabs? (the ones named "Plan1", "Plan2"
etc. by Excel)

Thank you
Paulo.



Peter Huang

How to change the ActiveSheet tab ("Plan1")
 
Hi Paulo,

You may try to use the code below.
Sub Test()
Dim ws As Worksheet
Set ws = Application.ActiveSheet
ws.Name = "hello"
End Sub

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


Peter Huang

How to change the ActiveSheet tab ("Plan1")
 
Hi Paulo,

If you still have any concern on this issue, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



All times are GMT +1. The time now is 07:13 AM.

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