+ Reply to Thread
Results 1 to 4 of 4

Excel VBA code to convert and save Active sheets as PDF

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Excel VBA code to convert and save Active sheets as PDF

    Dear all,
    I need code to convert active sheet into pdf format with file name as "Rename_This file" and want it to be saved into 'D:Pdf sheets\backup\' every time.

    But this code must prompt me to save the pdf with default location at mentioned above.

    Plz help.

  2. #2
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Excel VBA code to convert and save Active sheets as PDF

    It is always helpful for others to reply your query faster if you upload the workbook....
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  3. #3
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Excel VBA code to convert and save Active sheets as PDF

    I know, but I felt my query doesnt require any workbook. It's pretty much straight forward.
    Sorry.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,511

    Re: Excel VBA code to convert and save Active sheets as PDF

    I think LokeshKumar's request is quite reasonable.

    You want someone to create folders in order to be able to test a solution, create some arbitrary test data, and then give you a macro to do this for you?

    And your contribution to the process is ... what, exactly? Ask a question? No data, no draft code, not a problem to fix, ... just, make this for me?

    I suggest that you record a macro to do exactly what you have described. If necessary, view the recorded code and see if it needs editing.

    Then, if you have a problem, ask for help.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Speed up code, disable calculation on all sheets except active
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 06:09 AM
  2. VBA code to print and save specific pages in excel sheets?
    By JPSIMMON in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2014, 03:05 PM
  3. [SOLVED] How to change code so that it works in all active sheets
    By ciapul12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 10:38 PM
  4. Need a VBA Code to refresh data and save the active sheet as a new workbook.
    By Mysore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2012, 08:50 AM
  5. Replies: 0
    Last Post: 03-01-2012, 12:13 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