shemayisroel
Well-known Member
- Joined
- Sep 11, 2008
- Messages
- 1,867
Hi,
I found this code below that extracts the last sheet name. I need the code modified that it auto updates when a sheet is inserted as now you require to go to teh formula and refresh it in order to update the Last Sheet Name. Is it possible to build it in the code?
http://www.cpearson.com/excel/excelm.htm
I found this code below that extracts the last sheet name. I need the code modified that it auto updates when a sheet is inserted as now you require to go to teh formula and refresh it in order to update the Last Sheet Name. Is it possible to build it in the code?
http://www.cpearson.com/excel/excelm.htm
Rich (BB code):
Public Function LastSheetName()
LastSheetName = Sheets(Sheets.Count).Name
End Function