Code:
Sub CopyActiveSheet()Dim ws As Worksheet
Dim wb As Workbook
Dim Pth As String
Pth = ActiveWorkbook.Path & "\"
Set ws = ActiveSheet
ws.Copy
With ActiveWorkbook
ws.Cells.Copy .Sheets(1).Range("A1")
ActiveWorkbook.SaveAs Filename:= _
"[COLOR=#ff0000]K:\Work\Admin\Schedule\September\14.xlsx"[/COLOR], FileFormat _
:=xlOpenXMLWorkbook, CreateBackup:=False
End With
ActiveWorkbook.Close False
End Sub
I have the Folders for each month in path "K:\Work\Admin\Schedule" what I'm trying to accomplish is that for it to automatically select the current month folder in that path and save the file as sheet name. As shown above I put the Month path and sheet name 14.
any help is greatly appreciated
Last edited: