Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何创建一个将应用预定义过滤器等的函数,然后使用该数据生成一个新工作表?
我只需要创建新工作表部分。谢谢你。
使用预定义的模板表并制作副本:
Dim wb as Workbook Set wb = '... (set the workbook here where you want your new sheet to be copied) ThisWorkbook.Sheets("NameOfYourTemplate").Copy _ after:=wb.Sheets(wb.Sheets.Count)