Generate automatically name of the sheets

核能气质少年 提交于 2020-01-07 09:43:13

问题


Is it possible to generate automatically the name of the sheet? For example I want to name the sheets in the following way:

"chart1", "chart2", "chart3"..

Thanks!


回答1:


The Worksheet.Name property can be used to change the name of the worksheet in VBA.

This can be either done when creating new sheets, or set afterwards with the Worksheets(x).Name, where x is either the name of the worksheet you want to change, or an index.

For more information you can check the MSDN page about Worksheets.



来源:https://stackoverflow.com/questions/30710160/generate-automatically-name-of-the-sheets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!