Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am parsing a text file into component parts: I want to open a new workbook, add a few worksheets, ad data, save file. I can add the workbook but I can't seem to add worksheets to it How can I fix the code below? Thanks Habib ---------------------- SrcFile = GetFile() XLFile = Left(srcFile, Len(srcFile) - 4) & ".xls" Set wkbook = Workbooks.Add() wkbook.Activate wksheets = Array("Invoice", "Payment", "Reference", "Summary", "Other") For i = 0 To UBound(wksheets) Worksheets.Add(Befo=Worksheets(Worksheets.Count )).Name = "test" ActiveSheet.Name = wksheets(i) Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Multiple Sheets (Need to create 500 individual sheets in one workbook, pulling DATA | Excel Worksheet Functions | |||
How to create workbook with multiple sheets | Excel Discussion (Misc queries) | |||
Create new workbook when 00 sheets are reached | Excel Programming | |||
create workbook, copy sheets | Excel Programming | |||
Create New Workbook - Name book - 4 Sheets - Name Sheets | Excel Programming |