![]() |
how to rename the sheet in programming
hi there
i just want to program that excel can automatic rename the sheet's name once I key-in in the specific cell. For example a1 = testin result : the active sheet will be named as "testing" |
how to rename the sheet in programming
The code, simply, is
ActiveSheet.Name = Range("A1").Text You probably want to use an event procedure to make this happen automatically. For example, put the following code in the code module for the worksheet in question: Private Sub Worksheet_Change(ByVal Target As Range) Me.Name = Me.Range("A1").Text End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "chng" wrote in message ... hi there; i just want to program that excel can automatic rename the sheet's name once I key-in in the specific cell. For example; a1 = testing result : the active sheet will be named as "testing" |
All times are GMT +1. The time now is 12:51 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com