![]() ![]() Sub convertToWord()ĭim MyObj As Object, MySource As Object, file As Variantįile = Dir("D:\OfficeDev\Word\201505\Pdf\" & "*.pdf") 'pdf pathĬhangeFileOpenDirectory "D:\OfficeDev\Word\201505\Pdf\"ĭocuments.Open FileName:=file, ConfirmConversions:=False, ReadOnly:= _įalse, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _ The code below shows a simple demo to open pdf files, and save it as word, you could modify it according your own requirement. ![]() I'm wondering if there is a way to use VBA to convert a bunch of PDF files into Word documents.Īt present, Word 2013 offers the function to open pdf files directly, and then you could view the pdf in word.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |