Hi im looking for simple code to use vba to save an excel file as a PDF ?
Here is my code so far :
Set wb = Workbooks.Add
ThisWorkbook.Activate
ActiveSheet.Copy Before:=wb.Sheets(1)
wb.Activate
wb.SaveAs Filename:= Range("G5") & "-" & Range("G7") & Range("D7") & Range("N1")
Any help will be appreciated thanks
Here is my code so far :
Set wb = Workbooks.Add
ThisWorkbook.Activate
ActiveSheet.Copy Before:=wb.Sheets(1)
wb.Activate
wb.SaveAs Filename:= Range("G5") & "-" & Range("G7") & Range("D7") & Range("N1")
Any help will be appreciated thanks