سؤال

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