문제

How can I create a function that will apply predefined filters etc, and then generate a new sheet with that data?

I just need the create new sheet part. Thank you.

도움이 되었습니까?

해결책

Use a predefined template sheet and make a copy:

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)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top