|
|||||||||||||||||
These pages are no longer updated and are only available for archive purposes.Click here to visit the pages with updated information. Create new workbooksWith the function below you can create new workbooks with up to 255 new
worksheets. You can use the macro like this if you want to create a new workbook
with 10 worksheets: Function NewWorkbook(wsCount As Integer) As Workbook ' creates a new workbook with wsCount (1 to 255) worksheets Dim OriginalWorksheetCount As Long Set NewWorkbook = Nothing If wsCount < 1 Or wsCount > 255 Then Exit Function OriginalWorksheetCount = Application.SheetsInNewWorkbook Application.SheetsInNewWorkbook = wsCount Set NewWorkbook = Workbooks.Add Application.SheetsInNewWorkbook = OriginalWorksheetCount End Function
Document last updated 1999-12-20 12:51:17 Printerfriendly version
|
|||||||||||||||||
|