One question though, what does xlWBATWorksheet actually mean. I notice that rather than being called Book1 etc, the Workbook name is Sheet1. Makes no difference to my code, but I'm intrigued
Tiglet
[green]Duct tape is like the force; it has a light side & a dark side, and it holds the universe together. [/green]
Hi Tiglet,
in Workbooks.Add(Template) (Template is optional), Template specifies, how the new workbook is created. If ommited, standard new workbook is added. You can specify file here to use it as a template. You can also use constants (sometimes enumerated):
1 - for worksheet (xlWBATWorksheet)
2 - chartsheet (xlWBATChart)
3 - macro sheet (xlWBATExcel4MacroSheet),
4 - international macro sheet (xlWBATExcel4IntlMacroSheet),
5 - workbook,
6 - module (with workbook),
7 -. old dialogsheet.
For instance, the syntax for dialogsheet is Workbooks.Add(7)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.