Automation: Word to PDF Converter in VBA || File System Object Method || Convert Multiple Word files

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2018
  • #WordToPDFConverter #FileSystemObject #VBA
    Hello Friends,
    In this video you will learn how to create a Word to PDF converter using VBA. This converter can convert multiple Word file into PDF on single click.
    Please download this excel file (Converter) from below given link:
    www.pk-anexcelexpert.com/auto...
    See our Excel Products:
    www.pk-anexcelexpert.com/prod...
    Visit to learn more:
    Chart and Visualizations: www.pk-anexcelexpert.com/cate...
    VBA Course: www.pk-anexcelexpert.com/vba/
    Download useful Templates: www.pk-anexcelexpert.com/cate...
    Dashboards: www.pk-anexcelexpert.com/exce...
    Watch the best info-graphics and dynamic charts from below link:
    • Dynamic Graphs
    Learn and free download best excel Dashboard template:
    • Excel Dashboards
    Learn Step by Step VBA:
    • VBA Tutorial
    Website:
    www.PK-AnExcelExpert.com
    Facebook:
    / pkanexcelexpert
    Telegram:
    t.me/joinchat/AAAAAE2OnviiEk5...
    Twitter:
    / priyendra_kumar
    Pinterest:
    / pkanexcelexpert
    Send me your queries on telegram:
    @PKanExcelExpert

ความคิดเห็น • 60

  • @angelodeocampo3643
    @angelodeocampo3643 4 ปีที่แล้ว +1

    Bro, you are my life saver...works smoothly.. Thanks

  • @ramziadil2189
    @ramziadil2189 3 ปีที่แล้ว

    Thank you so much you're a genius!!!

  • @PankajKumar-yn3lx
    @PankajKumar-yn3lx 5 ปีที่แล้ว

    Thnx boss, This is most use full.

  • @caruanagiacomo3322
    @caruanagiacomo3322 ปีที่แล้ว +2

    wow thank you pk very handy

  • @Swamhtetyan
    @Swamhtetyan 5 ปีที่แล้ว

    Thank you for share knowledge

  • @fondzewongwiyfenglaanslem4563
    @fondzewongwiyfenglaanslem4563 3 ปีที่แล้ว +1

    You are just the best. A nice teacher. Be blessed
    you helped me

    • @PKAnExcelExpert
      @PKAnExcelExpert  3 ปีที่แล้ว

      Thanks for your valuable feedback 😀

  • @n1ch1r1n6
    @n1ch1r1n6 2 ปีที่แล้ว +1

    Thank you for the hard work you've put on this tutorial. Works like a charm.

  • @marcusbodeck2962
    @marcusbodeck2962 4 ปีที่แล้ว +1

    Hey Bro .... I love you THX ... Now i can work 10000 times faster .... no jocke ^^

  • @andreprado1
    @andreprado1 4 ปีที่แล้ว +1

    Perfect!

  • @fabiobvn
    @fabiobvn 3 ปีที่แล้ว +1

    Excelent my friend! Thank U so much 🙏

  • @LongNguyen-kz2oe
    @LongNguyen-kz2oe ปีที่แล้ว +1

    I did it, thank you so so much Bro

  • @hanikoariellozano2726
    @hanikoariellozano2726 3 ปีที่แล้ว +1

    Thank you very much sir. now i don't have to go online to convert word to pdf. thank you!!!!

  • @papaliahomeservices1852
    @papaliahomeservices1852 ปีที่แล้ว

    This was amazing! What if you wanted the filename to be from a fixed spot within the word doc?

  • @KundanKumarTantia
    @KundanKumarTantia 5 ปีที่แล้ว

    Gr8t job. Kindly add a button for browse file path instead type of path.

  • @geresh12
    @geresh12 10 หลายเดือนก่อน

    Thanks for the showing this, how can we change the folder path to teams folder

  • @bhai5608
    @bhai5608 3 ปีที่แล้ว +1

    Superb....!!!!

  • @hazelness7
    @hazelness7 3 ปีที่แล้ว

    that is excellent! is it possible to combine excel file, word file and pdf file into one pdf? would really appreciate if you can make a tutorial for that. thanks in advance☺

  • @karlvernor1690
    @karlvernor1690 3 ปีที่แล้ว

    Absolutely brilliant video. Subscribed to yiur channel. Can i ask how you learnt vb? Thank you

  • @rakeshshamantula6283
    @rakeshshamantula6283 3 ปีที่แล้ว

    Thank you for the video. It is really helpful. How do I convert tiff files to pdf?

  • @muthuraja6589
    @muthuraja6589 5 ปีที่แล้ว

    Pk sir I have a Data in three different Sheets, however I need to get all the existing three sheets data to new working Excel file using VLOOPUP function

  • @abdulhamidalhaddadi2255
    @abdulhamidalhaddadi2255 ปีที่แล้ว

    Great Idea,
    Sir I have a question, how can I convert file ONE by ONE? because I have registration sheet more than 100 records.
    I am waiting your reply
    Thank you

  • @maddinenirajeshbabu3143
    @maddinenirajeshbabu3143 3 ปีที่แล้ว

    Thanks for your video PK I am having one doubt how to open protected pdf file using vba

  • @ITCBI-ve2rx
    @ITCBI-ve2rx ปีที่แล้ว

    Can we play with sequencing of these word files and merging as well

  • @user-it1oo4cz8w
    @user-it1oo4cz8w 5 ปีที่แล้ว

    Dear brother How can I delete a row in a spreadsheet without compromising the data outside the table and on the same page by a button in the ezervum by the code.
    Thank you and appreciation

  • @AshwinKumar-ss1ky
    @AshwinKumar-ss1ky 4 ปีที่แล้ว +1

    HI Sir,
    Can we convert JPG to pdf by using same logic, please suggest.

  • @mukundpotdar9849
    @mukundpotdar9849 ปีที่แล้ว

    Hi Sir,
    I m looking for VBA Code where you want to use mail merge and generate document individual and employee code wise and convert into pdf. This is for generating increment letter for multiple employees.

  • @carollui2220
    @carollui2220 8 หลายเดือนก่อน

    Hi, I have a question. The pdf contains 2 pages (the 2nd page is blank) after converted. I think it's margin issue. Could you please advise the code that I can deletle Page 2 when converting? Thank you very much!

  • @JoseFernandezM
    @JoseFernandezM 4 ปีที่แล้ว

    Puede hacer un video donde ser convierta de word a pdf con contraseña?

  • @Stacyryan3
    @Stacyryan3 2 หลายเดือนก่อน

    What needs to be changed in the code for converting rtf to pdf since replacing .docx with .rtf is not converting ... Any help ?

  • @FRAN-vd9rl
    @FRAN-vd9rl 3 ปีที่แล้ว

    hi, does this code distinguish if i have other file extensions in that folder for ignoring them and only taking the .doc and .docx files?

  • @satyanarayanakinjangi9517
    @satyanarayanakinjangi9517 4 ปีที่แล้ว

    Sir when I used the above VBA code to convert word files to pdf files, it shows "another application to complete an ole action". I used microsoft excel 2007. So plz clarify my doubt. And resolve the problem.

  • @rajashukla3033
    @rajashukla3033 5 ปีที่แล้ว

    Hi Sir, do you have a similar tool for converting PDF into word doc ??? please revert...

  • @kiranghadi7088
    @kiranghadi7088 8 หลายเดือนก่อน

    I am using office 16 and "dim wordapp as new word.application" not supported

  • @sookchern87
    @sookchern87 4 ปีที่แล้ว

    Hi, may I know if you able to convert Word file with multiple pages and convert to multiple PDF files with password encrypted at once?

  • @vishalsingh127
    @vishalsingh127 5 ปีที่แล้ว

    Heloo bro i need your help for vba se folder crate krna and autofillter sheet se newwork book bane our save ho jaye ek folder me pls share the solution

  • @jacekrischka9523
    @jacekrischka9523 4 ปีที่แล้ว

    Hello:) I wrote the code in Excel, Microsoft Office 365 on Windows 10. When I click the button it pops up: Compile error: Invalid or unqualified reference. Can you please suggest any solution?

  • @selvarasan.v7246
    @selvarasan.v7246 2 ปีที่แล้ว

    Please request for help I try to VBA one VBA code error show _The macros in this project are disabled. Please refer to the online help or documentation of the host application to determine how to enable macros.

  • @aranyamajumdar9007
    @aranyamajumdar9007 3 ปีที่แล้ว

    Can you please share one more code for tiff images to pdf by excel macro

  • @yogeshdesai3049
    @yogeshdesai3049 4 ปีที่แล้ว

    Sir how to mail merge labels with vba in excel user form

  • @PankajKumar-yn3lx
    @PankajKumar-yn3lx 5 ปีที่แล้ว

    Hi sir, I want vba script for pdf file size reduce. Pls suggest me sir.

  • @PankajKumar-yn3lx
    @PankajKumar-yn3lx 5 ปีที่แล้ว

    Sir now not convert this process in window 10. Please suggest me.

  • @pramodml2725
    @pramodml2725 5 ปีที่แล้ว +1

    Hi Sir, How to convert PDF file to excel file ?

  • @abhisheksaraswat6753
    @abhisheksaraswat6753 4 ปีที่แล้ว +1

    Hi Sir, How we can consolidate the PDF using VBA...

    • @PKAnExcelExpert
      @PKAnExcelExpert  4 ปีที่แล้ว

      I will definitely try to make such video very soon.

  • @MIS_PRODUCTION_AAA
    @MIS_PRODUCTION_AAA 10 หลายเดือนก่อน

    Convert each pages into pdf

  • @mithunmitra1
    @mithunmitra1 ปีที่แล้ว

    I am getting an error in coding, can you please help me

  • @chaiyya345
    @chaiyya345 5 ปีที่แล้ว

    I have downloaded the file & not working.
    Run-time error '4198'
    Command failed

    • @PKAnExcelExpert
      @PKAnExcelExpert  5 ปีที่แล้ว

      Which version of office are you using and what is the extension of your word files like .Doc or .Docx?

    • @chaiyya345
      @chaiyya345 5 ปีที่แล้ว

      @@PKAnExcelExpert
      Office Home & Business 2016
      .docx

    • @chaiyya345
      @chaiyya345 5 ปีที่แล้ว

      @@PKAnExcelExpert Hi,
      I managed to convert all my docx files but often hit with errors. several errors i have seen:
      1. Run-time error '4198' Command Failed
      2. Run-time error '-2147467259 (80004005)' This file is in use by another application or user
      3. I have checked on Debug & VBA pointed me to this line:
      Set worddoc = wordapp.Documents.Open(f.Path)
      worddoc.ExportAsFixedFormat sh.Range("E14").Value & Application.PathSeparator & VBA.Replace(f.Name, ".docx", ".pdf"), wdExportFormatPDF
      Once it failed, it can no longer run the next conversion & i can see from the progress bar the docx is increasing by 1 file (eg, my Word folder has 12 files but from excel progress bar shows "Processing... 5/13)
      Do u think u could debug this further?
      Thank-You very much