Good morning all,
After hours of grappling, I've got the macro I'm writing to do what I want bar one last bit.
I can't see what's wrong with the code, it doesn't throw up any errors or debugging - but when the file saves, it doesn't save as a PDF, it just saves without a filetype.
Any clues?
After hours of grappling, I've got the macro I'm writing to do what I want bar one last bit.
Code:
With ActiveWorksheet
ChDir Sheet8.Range("F2").Value
fname = Sheet8.Range("I2").Value
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fname, quality:=xlQualityStandard, _
includedocproperties:=True, ignoreprintareas:=False, openafterpublish:=False
ActiveWorkbook.Close SaveChanges:=True
MsgBox "PDF exported to " & Sheet8.Range("F2").Text
End With
I can't see what's wrong with the code, it doesn't throw up any errors or debugging - but when the file saves, it doesn't save as a PDF, it just saves without a filetype.
Any clues?