+ Reply to Thread
Results 1 to 3 of 3

Macro to save xls to pdf with path & naming convention

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro to save xls to pdf with path & naming convention

    Hello,

    I am using the below macro to save my workbook with in the correct path and naming convention.

    In fact, as I also need a pdf file from that excel file, I tried to change the below macro and replace ".xlsm" by ".pdf"... However acrobat does not like it..



    HTML Code: 
    I guess that I should use the print option which gives me that when I record the macro. However I have no clue how to implement my naming convention + path in that macro.

    HTML Code: 
    Can you please help??

    Many thanks,
    Graig

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Macro to save xls to pdf with path & naming convention


    Hi,

    read VBA help of ExportAsFixedFormat method …

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro to save xls to pdf with path & naming convention

    Perfect ! Thanks.

+ 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. [SOLVED] How do I automatically fill in naming convention from one cell?
    By zilla1126 in forum Excel General
    Replies: 6
    Last Post: 10-23-2012, 09:30 AM
  2. Replies: 1
    Last Post: 10-13-2012, 02:57 AM
  3. Extracting Data from a Cell with Standard Naming Convention
    By jdohlinger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2012, 09:42 PM
  4. Add certain naming convention
    By superbob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2010, 05:26 AM
  5. Variable Naming Convention
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-08-2006, 03:50 AM

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