+ Reply to Thread
Results 1 to 2 of 2

Creating new .pdf based on existing file

  1. #1
    Registered User
    Join Date
    08-25-2014
    Location
    New York, New York
    MS-Off Ver
    Excel 2013
    Posts
    36

    Creating new .pdf based on existing file

    I have no issues when I run the code below the first time - however if the .pdf file exists when I click on "No" it says there is an error and highlights the line of code that reads
    "Sheets("Doc List").ExportAsFixedFormat Type:=xlTypePDF, Filename:=fname, Quality:=xlQualityStandard, IncludeDocProperties:=True, _
    IgnorePrintAreas:=False, OpenAfterPublish:=False"

    Please help.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    08-25-2014
    Location
    New York, New York
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Creating new .pdf based on existing file

    I realized you cannot use a ":" in the hour/minute format in the filename. When I removed this - the code works.

+ 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. Creating dynamic userform based on several file names and creating chart overlays
    By Thorn23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2014, 12:09 PM
  2. Creating a report based off existing values 'selected' in a form - Where to start
    By PeterJFulton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2014, 06:24 AM
  3. Writing a file’s name (or renaming it ) based on existing excel sheet data
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-30-2012, 08:11 PM
  4. [SOLVED] Creating new field with conditional values based on existing data
    By DrNerj in forum Excel General
    Replies: 3
    Last Post: 07-30-2012, 02:54 PM
  5. Creating a new excel file from an existing file using macro
    By Macro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-28-2005, 02: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