Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default New WorkBook With Specified Number of Sheets

Sure would oblige if the proper complete syntax is provided in respect of
Creating a New Workbook with a specified number of sheets.

Thanx in advance!
--
Best Regards,

Faraz
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default New WorkBook With Specified Number of Sheets

On 15 dic, 11:23, Faraz A. Qureshi
wrote:
Sure would oblige if the proper complete syntax is provided in respect of
Creating a New Workbook with a specified number of sheets.

Thanx in advance!
--
Best Regards,

Faraz


Hello.

One way is:

Sub newworkbook()
pastsheets = Application.SheetsInNewWorkbook
newsheets = 3
Application.SheetsInNewWorkbook = newsheets
Workbooks.Add
Application.SheetsInNewWorkbook = pastsheets

End Sub

Regards,

Benito
Barcelona
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
max number of sheets possible in a workbook? Boon8888 Excel Discussion (Misc queries) 2 February 2nd 06 06:20 PM
Max number of sheets in workbook Kjeldc Excel Programming 5 September 24th 05 08:51 AM
Open workbook with x number of sheets Robert Christie[_3_] Excel Programming 4 November 11th 04 06:44 PM
Limit on number of Sheets in a Workbook? Mr B[_3_] Excel Programming 1 April 8th 04 08:03 PM
Return the number of Sheets in a Workbook gminor7[_3_] Excel Programming 3 November 17th 03 11:02 PM


All times are GMT +1. The time now is 07:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"