Hi,
im using this macro to open the print as PDF window allowing user to save it as a PDF.
some of the users are getting "You do not have license for that function" message. Please help in fixing this.
thanks
KF
im using this macro to open the print as PDF window allowing user to save it as a PDF.
some of the users are getting "You do not have license for that function" message. Please help in fixing this.
thanks
KF
VBA Code:
Sub CreatePDF()
Dim fName As String, fPath As String
fPath = CreateObject("WScript.Shell").SpecialFolders("Desktop")
MsgBox fPath
fName = Sheets("Cover Page").Range("A18").Value & " " & Format(Date, "dd-mm-yyyy")
fPath = fPath & "\" & fName & ".pdf"
ThisWorkbook.Sheets(Array("Cover Page", "Main Menu", "User Guide", "Market", "ITFA", "People", "Opex", "Marketing", "FundsInv", "BS", "PL", "CF", "Dashboard", "Sensitivity")).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:=fPath, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=True
ThisWorkbook.Sheets("Cover Page").Select
End Sub