+ Reply to Thread
Results 1 to 3 of 3

Convert into PDF the sheets when save and close the EXCEL file

  1. #1
    Registered User
    Join Date
    09-16-2013
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Convert into PDF the sheets when save and close the EXCEL file

    Hi,

    Is there any way to convert the excel file into PDF when I will save and close that excel file ?

    For example, I want to run a macro whenever the opened excel file will be saved and closed, that particular file will be converted into PDF by default. This will be applicable for all sheets available in that excel file, say there are 3 sheets available in the file and when the excel file will be converted into PDF three PDF files will be generated with the name of each SHEET.

    I would be grateful if anyone can help me out.

    Regards.

    Soumendu

  2. #2
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Convert into PDF the sheets when save and close the EXCEL file

    Create a module and enter the code below, enter any sheets you wish to omit in the array vWshs = Array("Sheet1", "Sheet3", "Sheet4")

    Please Login or Register  to view this content.
    and in the workbook -- before close module add

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-03-2013
    Location
    Los Angeles
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Convert into PDF the sheets when save and close the EXCEL file

    Hi, Soumendu.
    I have never tried to convert the excel file into PDF. But have you ever tried the code offered by Kramxel? Did it work? How about
    converting PDF to other image fomats?Any suggestion will be appreciated. Thank in advance.



    Best regards,
    Arron
    Best Regards,
    Arron

+ 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. Replies: 1
    Last Post: 10-25-2013, 06:10 PM
  2. [SOLVED] Excel. Save and close a file.
    By leesob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2013, 07:57 AM
  3. Excel freezes on File save/close
    By seckert in forum Excel General
    Replies: 4
    Last Post: 02-18-2010, 12:58 PM
  4. [SOLVED] File close excel does not ask me to save changes
    By Cathy Humphreys in forum Excel General
    Replies: 2
    Last Post: 06-14-2005, 12:05 AM
  5. Replies: 0
    Last Post: 04-26-2005, 05:06 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