Create Workbook

  • Thread starter Thread starter Trent Argante
  • Start date Start date
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
 
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)
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top