Sub Email()
Dim OutlookApp As Object
Dim OutlookMail As Object
Dim FileFullPath As String
FileFullPath = ThisWorkbook.Path & "\" & Sheets("DataInput").Range("C13").Value & " " & "-" & " " & Sheets("DatInput").Range("C30).Value & ".pdf"
Sheets("Master").ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:= _
FileFullPath, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Hi, the above is part of my codings for an excel sheet to be converted to pdf file, i have been getting errors such as Syntax error, Subscript out of range, on this part of the code, any idea what went wrong? when i took this part out,
FileFullPath = ThisWorkbook.Path & "\" & Sheets("DataInput").Range("C13").Value & " " & "-" & " " & Sheets("DatInput").Range("C30).Value & ".pdf"
Sheets("FixedPayer").ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:= _
FileFullPath, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
It worked fine.
Thank you!
Bookmarks