ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add Workbook with specified name (https://www.excelbanter.com/excel-programming/296705-add-workbook-specified-name.html)

Todd huttenstine

Add Workbook with specified name
 
Hey guys

I am trying to create a workbook called "Ops Reports
Temporary". Its not working. What should it be?

Dim WB As Workbook
Set WB = Workbooks("Ops Reports Temporary").Add


Thanx
Todd Huttenstine

Ron de Bruin

Add Workbook with specified name
 
Try this

Dim WB As Workbook
Set WB = Workbooks.Add
WB.SaveAs "Ops Reports Temporary.xls"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Todd Huttenstine" wrote in message ...
Hey guys

I am trying to create a workbook called "Ops Reports
Temporary". Its not working. What should it be?

Dim WB As Workbook
Set WB = Workbooks("Ops Reports Temporary").Add


Thanx
Todd Huttenstine




Don Guillett[_4_]

Add Workbook with specified name
 
try

Sub addnamewb()
Workbooks.Add.SaveAs Filename:="Don.xls"
End Sub
--
Don Guillett
SalesAid Software

"Todd Huttenstine" wrote in message
...
Hey guys

I am trying to create a workbook called "Ops Reports
Temporary". Its not working. What should it be?

Dim WB As Workbook
Set WB = Workbooks("Ops Reports Temporary").Add


Thanx
Todd Huttenstine





All times are GMT +1. The time now is 08:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com