How to open a new workbook and rename the workbook?

  • Thread starter Thread starter pokdbz
  • Start date Start date
P

pokdbz

I need to know how to open a new workbook and then rename the workbook?
 
Sorry was trying to write VBA code for this.

I have Workbooks.Add but I cannot figure out how to rename the open Workbook.
 
Workbooks are "renamed" by saving them.

So you'll have to use something like:

dim NewWkbk as workbook
set newwkbk = workbooks.add
newwkbk.saveas filename:="C:\whateveryouwanthere.xls", _
fileformat:=xlworkbooknormal
 

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