+ Reply to Thread
Results 1 to 5 of 5

VBA code for Word to PDF convert

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    India,Pune
    MS-Off Ver
    Excel 2013
    Posts
    99

    VBA code for Word to PDF convert

    Hi,

    I need a help in VBA coding for converting multiple word file into PDF.

    The code should be go to folder and open each word file and covert into PDF and that PDF save it to that folder itself one by one with the name of word
    file.

    Hope I am able to explain my queries.

    Thanks in advance for help!
    Last edited by rchure; 08-17-2017 at 06:29 AM.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA code for Word to PDF convert

    Hi rchure

    Below is a WORD macro that achieves what you have requested
    - the path to your word files should replace "D:\Documents\MyFolder\"
    - remember to end the path with "\"

    Word file containing the macro is attached


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    India,Pune
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: VBA code for Word to PDF convert

    This exactly I am looking for.

    Thank you so much!!!

  4. #4
    Registered User
    Join Date
    04-04-2014
    Location
    India,Pune
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: VBA code for Word to PDF convert

    Hi,

    How to assign button to this macro? I don't want to open VBA window, through button I want to run this macro.

  5. #5
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VBA code for Word to PDF convert

    - see attached Word document

    code behind the button:
    Please Login or Register  to view this content.

    OR
    all in one macro like this:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kev_; 08-18-2017 at 05:04 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Code to Convert/Print Selected Pages of Word Document to PDF File
    By DD1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2016, 01:59 AM
  2. [SOLVED] VBA Code to Convert/Print Selected Pages of Word Document to PDF File
    By DD1 in forum Word Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2015, 02:18 AM
  3. [SOLVED] convert month to value and whole word in vba code
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2014, 03:23 AM
  4. convert word into VBA code
    By Aleemaher in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-21-2014, 01:42 AM
  5. Request: VBA Code Convert to Word 2010
    By imshah in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2013, 07:33 AM
  6. HELP Request: VBA Code Convert to Word 2010
    By imshah in forum Word Formatting & General
    Replies: 5
    Last Post: 01-30-2013, 04:28 AM
  7. code use to convert pdf to word and excel
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2007, 02:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1