+ Reply to Thread
Results 1 to 5 of 5

Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?

  1. #1
    Registered User
    Join Date
    11-18-2016
    Location
    Canada
    MS-Off Ver
    2007 and 2016
    Posts
    3

    Exclamation Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?

    **EDITED I need this to work with Office 2003, not 2007**

    Hi there,

    First time post so hopefully I don't ignore any formatting rules that I missed.

    So I have a fairly basic Print to PDF macro, I wrote this on my personal laptop that I use at work which currently has Office 2016 installed. Here is the code I am using, on Office 2016 it works perfectly.

    Please Login or Register  to view this content.
    The problem I have is that I work in the field, and I use a computer in my van here that doesn't have an internet connection. I tried tethering my phone to it to run updates but the cellular service out here isn't good enough for it to work.

    This PC uses Office 2003 and Windows 7, it hasn't seen an update since 2012 according to windows update.

    When I attempt to use the Print to PDF macro on this PC it returns a Run Time Error "438" Object doesn't support this property or method.

    Through some googling I have found that there was a PDF Add-In released for Office 2007, I installed that and it didn't help.

    I tried to install the Service Pack 3 update for Office 2003 that I found online but it errors on install saying its for a different operating system, I am assuming this is due to the PC being out of date with its updates.

    Is there any way I can rewrite this for 2003 that would make it function? Or is the export to PDF function just simply not existing due to out of date software and I am more or less up shits creek, for lack of a better term?

    Everything I have found online was essentially using the same formatting I am, so I am at a loss.

    Thanks in advance for any help.
    Last edited by gmartin22; 11-18-2016 at 07:05 PM. Reason: 2003, not 2007

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?

    Welcome to the forum! Congrats for using code tags.

    It has been so long but I think that was a GUI method? You can try recording a macro and show here if it works. We can then use Application.Version or an On Error to allow either.

  3. #3
    Registered User
    Join Date
    11-18-2016
    Location
    Canada
    MS-Off Ver
    2007 and 2016
    Posts
    3

    Re: Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?

    Ok so I get 2 very different versions here.

    Please Login or Register  to view this content.
    The caveat here is I want it to get the PDF name from a cell (Range O11) and to place the PDF in a folder that it will create if it doesn't exist on the desktop, hence all the other code surrounding the ExportAsFixedFormat code in the original macro.
    Last edited by gmartin22; 11-18-2016 at 03:35 PM.

  4. #4
    Registered User
    Join Date
    11-18-2016
    Location
    Canada
    MS-Off Ver
    2007 and 2016
    Posts
    3

    Re: Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?

    I edited my post to reflect an error. I thought the work PC was running Office 2007 but it is in fact running 2003, sorry for the inconvenience! My mistake

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

    Re: Printing to PDF Macro - Problems with office 2007 incompatibilities? What can I do?


    Hi !

    This function does not exist in 2003 version ! Use an external tool …

+ 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. Problems running Excel 2007 .xlsm workbook under Office 365
    By sumdumgai in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 09:47 AM
  2. Replies: 2
    Last Post: 07-29-2011, 01:52 PM
  3. macro built with Office 2003 not working on Office 2007
    By pako87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-02-2009, 08:12 AM
  4. Problems printing standard case in Excell 2007
    By invent in forum Excel General
    Replies: 0
    Last Post: 07-16-2009, 09:12 AM
  5. Using Excel 2003 workbooks in Excel 2007, Incompatibilities
    By craig glenn in forum Excel General
    Replies: 1
    Last Post: 06-02-2009, 09:25 AM
  6. Where in Office 2007 can I record a macro?
    By Graeme in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2006, 10:10 AM
  7. [SOLVED] Printing problems about Excel 2007 beta2
    By Jonnykao in forum Excel General
    Replies: 5
    Last Post: 07-25-2006, 07:15 PM

Tags for this Thread

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