Generate automatically name of the sheets

2019-09-21 13:44发布

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条回答
\"骚年 ilove
2楼-- · 2019-09-21 13:59

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.

查看更多
登录 后发表回答