ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Worksheet name = cell value (https://www.excelbanter.com/excel-programming/280341-worksheet-name-%3D-cell-value.html)

MC[_3_]

Worksheet name = cell value
 
I need to set a Worksheet's name equal to cell B3's
value. If I could set it to a Portion of B3's value that
would be better, e.g. Mid(B3,9,20)

any help will be appreciated.

Vasant Nanavati

Worksheet name = cell value
 
Hi:

ActiveSheet.Name = Mid(Range("B3").Value,9,20)

Regards,

Vasant.

"MC" wrote in message
...
I need to set a Worksheet's name equal to cell B3's
value. If I could set it to a Portion of B3's value that
would be better, e.g. Mid(B3,9,20)

any help will be appreciated.





All times are GMT +1. The time now is 04:21 PM.

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