Firstly, you have to set the following references:
Adobe\Acrobat4.0\macros\office97\AdobePDFMakerX
Adobe\Acrobat4.0\Acrobat\Acrobat.TLB
Adobe\Acrobat4.0\Distillr\Acrodist.exe
============================================================
dim wordapp as new word.application
____________________________________________________________
Private sub
name4file = "C:\temp\ABCE.doc"
DocChange name4file 'this is passing value into function
end sub
____________________________________________________________
sub DocChange(filename as string)
wordapp.visible = false
with wordapp
.Documents.open filename
PDF 'open up another function to create pdf file
PDFSavG filename 'Save your pdf by opening another func
.Quit False
end with
set wordapp = nothing
end sub
___________________________________________________________
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.