Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have tried to add a worksheet with the following code.
dim oDoc as Workbook dim oSht as Worksheet Set oDoc = Application.ThisWorkbook oSht = oDoc.Worksheets.Add It gives an error #1004. I have tried it in many variations but all fail. Some even create the sheet but still error out. Any help would be appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Method for creating formulas to reference different worksheets? | Excel Worksheet Functions | |||
Please post this thread a correct full method, method about | New Users to Excel | |||
What is the quickest method to insert & name multiple worksheets . | Excel Worksheet Functions | |||
What is the quickest method to insert & name multiple worksheets . | Excel Worksheet Functions | |||
Sheets(array) method for printing grouped worksheets | Excel Programming |