Ambiguooous
New Member
- Joined
- Jun 6, 2018
- Messages
- 30
How can I delete some sheets from the new generated workbook if I am using the following code :
Sub SaveAsValues()
Dim ws As Worksheet
For Each ws In Worksheets
ws.UsedRange.Value = ws.UsedRange.Value
Next ws
ThisWorkbook.SaveAs "D:\LM - " & Format(Date, "dd mmmm yyyy"), _
FileFormat:=51, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
Sub SaveAsValues()
Dim ws As Worksheet
For Each ws In Worksheets
ws.UsedRange.Value = ws.UsedRange.Value
Next ws
ThisWorkbook.SaveAs "D:\LM - " & Format(Date, "dd mmmm yyyy"), _
FileFormat:=51, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
End Sub