VBE313
Well-known Member
- Joined
- Mar 22, 2019
- Messages
- 686
- Office Version
- 365
- Platform
- Windows
Code:
Dim path1 As String
Dim Filename1 As String
Application.ScreenUpdating = False
path1 = Range("I7").Text
Range("A1:f40").Select
Selection.Copy
Sheets("Laser").Select
Sheets.Add After:=ActiveSheet
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
ActiveSheet.Select
ActiveSheet.Move
Filename1 = Range("B4").Text
Application.DisplayAlerts = False
[U][B] ActiveWorkbook.SaveAs Filename:=path1 & Filename1 & ".xlsx", FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False[/B][/U]
Application.DisplayAlerts = True
ActiveWorkbook.Close
Application.ScreenUpdating = True
Sheets("Laser").Select
End Sub
Last edited by a moderator: