MartinS
Active Member
- Joined
- Jun 17, 2003
- Messages
- 489
- Office Version
- 365
- Platform
- Windows
Hi
Is it possible to open a blank workbook (i.e. no worksheets) then add to that a blank worksheet onto which I can copy/paste my stuff?
Each time I try it, it opens a workboo with three blank worksheets (as set in my options) - what I'd like is to only have the number of sheets required in my workbook - is this possible, or is is just a case of deleting the sheets before closing?
The code I use is:
Private wkbTWB As Workbook, wkbNEWWB As Workbook
Private wksNEWWS As Worksheet
'Define current workbook object...
Set wkbTWB = ThisWorkbook
'Add new workbook object...
Set wkbNEWWB = Workbooks.Add
'Add new worksheet object...
Set wksNEWWS = wkbNEWWB.Worksheets.Add
Any help/advice gratefully received
Regards
Martin
Is it possible to open a blank workbook (i.e. no worksheets) then add to that a blank worksheet onto which I can copy/paste my stuff?
Each time I try it, it opens a workboo with three blank worksheets (as set in my options) - what I'd like is to only have the number of sheets required in my workbook - is this possible, or is is just a case of deleting the sheets before closing?
The code I use is:
Private wkbTWB As Workbook, wkbNEWWB As Workbook
Private wksNEWWS As Worksheet
'Define current workbook object...
Set wkbTWB = ThisWorkbook
'Add new workbook object...
Set wkbNEWWB = Workbooks.Add
'Add new worksheet object...
Set wksNEWWS = wkbNEWWB.Worksheets.Add
Any help/advice gratefully received
Regards
Martin