Hi,
starting with a excel file I would like to convert a specific file (.docx) in a folder, into a .pdf. I can write the path in the code. I would like to do this operation without opening the .docx file.
Thx for help
Hi,
starting with a excel file I would like to convert a specific file (.docx) in a folder, into a .pdf. I can write the path in the code. I would like to do this operation without opening the .docx file.
Thx for help
![]()
Please Login or Register to view this content.
Alternatively:
Note that it's not possible to do as the OP asks without opening the file.![]()
Please Login or Register to view this content.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Hi,
I insert both the code in a module in excel but doesn't work. I select the code but when I try to execute the macro nothing happens. Where I wrong?
Both macros assume you're calling the MakeWordPDFFile sub from another macro or function. Mine assumes only that it's called with the path & name of the Word document (e.g. Call MakeWordPDFFile("some document path & name")); Ken's assumes it's called with the path & name of the Word document and the path & name of the pdf it's to be saved as. Since you said "I can write the path in the code", it's reasonable for us to expect you to know how to do that.
You're right! It's work!Thx to both.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks