Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Workbooks.add count:=X?

The syntax of both are given below

Worksheets.Add
expression.Add(Before, After, Count, Type)

Workbooks.Add
expression.Add(Template)

'You will need to loop
Dim intTemp as Integer
For intTemp = 1 to 5
Workbooks.Add
Next

If this post helps click Yes
---------------
Jacob Skaria


"Ted M H" wrote:

I'm trying to figure out the syntax / arguments to add more than one workbook
to the collection of open workbooks. Conceptually it seems this is similar
to adding multiple worksheets to a workbook where worksheets.add count:= 5
would add five worksheets. Is there any way to accomplish the same thing
with workbooks?

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
Excel2007; workbooks.count is not counting all open workbooks greg.campeau Excel Programming 2 August 2nd 08 08:37 PM
Count open workbooks before closing Les Excel Programming 2 June 25th 07 05:11 AM
count number of workbooks open Ronaldo Excel Programming 2 April 21st 05 01:00 PM
I can't see a Workbook in WorkBooks.Count Jordi Excel Programming 3 November 13th 03 01:08 PM
Count of workbooks in a directory David Excel Programming 1 November 11th 03 10:20 PM


All times are GMT +1. The time now is 02:43 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"