Create Workbook

T

Trent Argante

Dumb question, but I forgot how to programmincally create
a workbook and I can't find it in Help, so...help! =;O)
Trent
 
B

Bob Phillips

Trent,

It's pretty simple

workbooks.Add

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
C

Chip Pearson

Trent,

Use the Add method of the Workbooks collection. E.g.,

Dim WB As Workbook
Set WB = Workbooks.Add()


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
T

Trent Argante

Thanks, Bob.

I was ASSuMEing that the workbook had to exist prior to .ADDing it to
the collection, so I didn't even bpther trying it...uh, hello, McFly?

Trent Argante

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Top