ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   worksheet save (https://www.excelbanter.com/excel-programming/308474-worksheet-save.html)

vbastarter

worksheet save
 
Looks like sheet dont have save property. I dont want to save the entiire
workbook but Just one sheet(sheet1). How is that possible ?
Thx

JE McGimpsey

worksheet save
 
one way:

Public Sub CopySheetToNewWorkbook()
Sheets("Sheet1").Copy
Application.DisplayAlerts = False
With ActiveWorkbook
.SaveAs Filename:="test.xls"
.Close
End With
Application.DisplayAlerts = True
End Sub


In article ,
"vbastarter" wrote:

Looks like sheet dont have save property. I dont want to save the entiire
workbook but Just one sheet(sheet1). How is that possible ?
Thx



All times are GMT +1. The time now is 01:43 AM.

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