I’ve done creating a PDF conversion of MS Word using the code below, however, I ran into a problem with the “SaveAs dialog” of the PDF converter. Is there any way to disable that prompt and automatically create a PDFfile using the Word filename?
filename1 = Cstr(“c:\PDF”+“_”+Cstr(Replace(Cstr(Today), “/”, “-”)))
msWord.ActiveDocument.SaveAs filename1 + “.doc”
msWord.ActivePrinter = “CutePDF Writer”
filename3 = filename1 + “.pdf”
msWord.PrintOut FileName=filename1, Background=True, OutputFileName=filename3