+ Reply to Thread
Results 1 to 2 of 2

Printing PDFs with a File Path linked to a cell.

  1. #1
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    Printing PDFs with a File Path linked to a cell.

    Hi all,

    I'm running into a problem when running the following piece of code:

    PHP Code: 
    ActiveWorkbook.Worksheets(SheetName).ExportAsFixedFormat _
        Type
    :=xlTypePDF_
        Filename
    :=FilePath Filename_
        Quality
    :=xlQualityStandard_
        IncludeDocProperties
    :=True_
        IgnorePrintAreas
    :=False_
        OpenAfterPublish
    :=False 
    I'm linking the variable, "FilePath" to a cell on a sheet using:

    PHP Code: 
    FilePath ActiveWorkbook.Worksheets(CommandSheet).Cells(28
    The value it returns is: C:\Users\Harry.Greenwood\Documents\Excel PDFs\

    The code executes, but doesn't create a PDF.

    When I manually paste the file path in, it works fine however.

    Any ideas?

  2. #2
    Forum Contributor
    Join Date
    12-02-2014
    Location
    England
    MS-Off Ver
    2010 | 2016
    Posts
    167

    Re: Printing PDFs with a File Path linked to a cell.

    Apologies, the PDF's were just taking a long time to create!

+ 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] File Path Reference Linked Workbook Cell Values
    By Pavel001 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2016, 04:38 PM
  2. Find filename and path of a linked file in another cell
    By Tsangman007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-02-2015, 01:35 AM
  3. Printing PDFs file with Excel Sheets With Page Numbers
    By reachharry in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-24-2014, 10:59 AM
  4. Include cell value in folder path for a linked file
    By Snajder in forum Excel General
    Replies: 1
    Last Post: 06-27-2013, 04:25 AM
  5. Reducing Linked File Path / Formula
    By SamuelT in forum Excel General
    Replies: 5
    Last Post: 11-21-2007, 11:46 AM
  6. [SOLVED] Linked file in same folder but unknown path
    By Christy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-04-2005, 02:05 PM
  7. Copy and Paste Formula Without the linked file path
    By KevinB in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-24-2005, 07: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