hi all,
i currently have a macro in outlook to alter a word document, save as new file and attach. is there any way to, in this automated process, print the word output to pdf and attach the pdf instead?
-tomas
Hello Hello, BlackMustard!
Here is a bit of code you can use to read a pdf file?
Perhaps you can tweak it to fit your neeeds:
-
-
Option Explicit
-
-
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
-
(ByVal hwnd As Long, _
-
ByVal lpOperation As String, _
-
ByVal lpFile As String, _
-
ByVal lpParameters As String, _
-
ByVal lpDirectory As String, _
-
ByVal nShowCmd As Long) As Long
-
-
Sub Open_PDF()
-
ShellExecute 0, "open", "C:\YOURFOLDER.YOURFILE.pdf", "", "", 1
-
End Sub
-
-
-
Will fetch a bit here, perhaps something has been posted...
In a bit!