Sub SaveAsPDF()
Dim path As String
path = ThisWorkbook.Path & "\"
Dim folderName As String
folderName = Format(Now(), "yyyy-mm-dd_hh-mm-ss")
MkDir path & folderName
Dim fileName As String
fileName = folderName & "\" & "MyWorksheet.pdf"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=path & fileName
MsgBox "PDF saved in folder: " & path & folderName
End Sub