Set YeniKitap = Workbooks.Add([Template])

Katılım
2 Mart 2005
Mesajlar
2,960
Excel Vers. ve Dili
ev: Ofis 2007- Win Xp
iş: Ofis 2010- Win Vista
Kod:
Set YeniKitap = Workbooks.Add(xlWBATWorksheet)
yukardaki kod ile tek sayfalı yeni çalışma kitabı ekliyoruz Ancak Kitap Başlığıda Sayfa1 oluyor ben kitap başlığı sıraaki ne ise o olsun istiyorum kitap1, kitap10, kitap20 gibi. uygun template varmı elinizde :)
 
Katılım
2 Mart 2005
Mesajlar
2,960
Excel Vers. ve Dili
ev: Ofis 2007- Win Xp
iş: Ofis 2010- Win Vista
buradaki template seçenekleri nelerdir ve ne işe yararlar ?
 

Zeki Gürsoy

Uzman
Uzman
Katılım
31 Aralık 2005
Mesajlar
4,312
Excel Vers. ve Dili
Office 2019 (64 bit) - Türkçe
Excel VBA yardımında şu şekilde belirtmiş:

expression.Add(Template)
expression Required. An expression that returns a Workbooks object.

Template Optional Variant. Determines how the new workbook is created. If this argument is a string specifying the name of an existing Microsoft Excel file, the new workbook is created with the specified file as a template. If this argument is a constant, the new workbook contains a single sheet of the specified type. Can be one of the following XlWBATemplate constants: xlWBATChart, xlWBATExcel4IntlMacroSheet, xlWBATExcel4MacroSheet, or xlWBATWorksheet. If this argument is omitted, Microsoft Excel creates a new workbook with a number of blank sheets (the number of sheets is set by the SheetsInNewWorkbook property).
 
Katılım
2 Mart 2005
Mesajlar
2,960
Excel Vers. ve Dili
ev: Ofis 2007- Win Xp
iş: Ofis 2010- Win Vista
İlgine teşekkür ederim türkçe açıklmalarınııda alabilirmiyim mümkünse... ne işe yarar yani
 

Zeki Gürsoy

Uzman
Uzman
Katılım
31 Aralık 2005
Mesajlar
4,312
Excel Vers. ve Dili
Office 2019 (64 bit) - Türkçe
*Opsiyon atlanırsa, yeni çalışma kitabı eklenir. (3 sekmeli)
*Daha önce kayıtlı Excel dosyasını farklı isimde açar.
*Sabitleri kullanıldığında garfik sayfası, Excel4 sayfası, standart Excel sayfası ekler.
 
Katılım
2 Mart 2005
Mesajlar
2,960
Excel Vers. ve Dili
ev: Ofis 2007- Win Xp
iş: Ofis 2010- Win Vista
Teşekkür ederim
 
Üst