i have made a macro to save a file as a PDF (with filename from a cell) onto my desktop and then add it to an email as a PDF
my problem is this only works for me, once i put the document onto the server for others to use the macros dont work,
can somebody have a look at this for me,
the other problem is that allthough it saves as ref E5 the email does not
Sub SavePDF_EmailPDF()
'
' SavePDF_EmailPDF Macro
'
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\craigford\Desktop\" & Cells(5, 5).Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\CRAIGF~1\AppData\Local\Temp\" & Cells(5, 5).Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Application.Dialogs(xlDialogSendMail).Show
End Sub
my problem is this only works for me, once i put the document onto the server for others to use the macros dont work,
can somebody have a look at this for me,
the other problem is that allthough it saves as ref E5 the email does not
Sub SavePDF_EmailPDF()
'
' SavePDF_EmailPDF Macro
'
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\craigford\Desktop\" & Cells(5, 5).Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\CRAIGF~1\AppData\Local\Temp\" & Cells(5, 5).Value & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=False, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
Application.Dialogs(xlDialogSendMail).Show
End Sub