+ Reply to Thread
Results 1 to 12 of 12

Save To PDF Error

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Save To PDF Error

    .
    Yesterday this macro worked flawlessly. Today, without making any changes to it, Excel is saying it has an 'Invalid procedure call or Argument .... Runtime Error 5'


    Please Login or Register  to view this content.
    Am I overlooking something here ? This is the entire macro :

    Please Login or Register  to view this content.
    Thank you.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: Save To PDF Error

    I cannot replicate the error.

    I copied the code and placed it in a blank workbook, and it worked fine. How can we replicate the error?

  3. #3
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Re: Save To PDF Error

    .
    I'm not certain how the error might be replicated.

    I've gone through the process of 'repairing' Windows .. repairing MS Office.

    Everything, this project and others, that involved printing to PDF no longer work.


    Suggestions ?

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,888

    Re: Save To PDF Error

    What happens if you use
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Re: Save To PDF Error

    .
    Fluff ... thank you for responding.

    Still the same error message.


    I'm presently checking for virus.

    After that, I'll attempt to re-build the workbook one sheet at a time and the modules as well.


    And, if that doesn't work .. guess I'll need to re-install Win10 and then MS Office.

    Frustrating ...

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,888

    Re: Save To PDF Error

    Pass
    If you close all other workbooks, including Add-ins & personal.xlsb, do you still get the same problem?

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Re: Save To PDF Error

    .
    No personal.xlsb.

    All other workbooks closed.

    No Add-ins.

    Still same issue.



    I am suspicious that the system itself may have an issue / s. By system I mean the computer.
    In recent months (2 months) I've had to do a complete reset / reload of Win 10 and all software.
    I haven't been able to put my finger on what is causing the issue requiring a complete reset.

    I've run tests on the monitor, the hard drive and the overall system itself. Have not discovered any
    anomalies as a result.

    The computer itself is only a year old. And even tho technology marches own and waits for no one, the
    computer itself is not old enough to trash it.

    When I last reloaded the system and software, I turned off the Win 10 updates for fear some of the updates
    were the cause.

    Does anyone know if the original version of Win 10 64 bit has issued with Excel ?

  8. #8
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Re: Save To PDF Error

    .
    This is just venting ... but I need to vent.

    This is an example of the dumb stuff Excel is saying :



    Format.jpg




    How can Excel not "find" FORMAT ???

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470

    Re: Save To PDF Error

    .
    Well ... I went through all the steps available and finally had to uninstall / reinstall Office .

    While searching the 'net for assistance I found an add-in from MS for Excel 2007 re: PDF files. I loaded that as well.
    Not certain if the add-in made the difference but it couldn't hurt ?

    In any case, I have the project running again although I had to correct a number of the Command Button macro assignments
    and in a few instances had to copy code to Notepad then paste the code back to the Sheet Module or Regular Module.

    At this time everything works. In the morning I may open the case to the computer and spray it with Gremlin Pesticide as well
    as place a few "sticky traps" on the inside. One way or the other I am determined to rid my system of those critters.

    Thank you to all who responded. You have always been a great asset. Kudos !

    Cheers.

  10. #10
    Forum Contributor
    Join Date
    06-30-2018
    Location
    Sweden
    MS-Off Ver
    2016.
    Posts
    397

    Re: Save To PDF Error

    Hi, I got the same error when I sent a file I made with Excel 365 to an Excel 2013 user.

    I never got it to work for Excel 2013 user so I just removed the part with format.

  11. #11
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,527

    Re: Save To PDF Error

    About the error in Post#8. You get that when there's a missing reference (usually something like Common Controls), did you check that ?
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  12. #12
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,470
    Thanks bakerman .... I'll look at it, especially since I
    Have it working again. Dont want it to corrupt again.

+ 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. VBA error when using "Save As" to save a copy
    By Nitro2481 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-20-2018, 01:24 PM
  2. Run-time error 1004 error on Mac only Application.Get.Save.AsFilename
    By Carpinteria Al in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2016, 11:20 AM
  3. Replies: 2
    Last Post: 02-03-2016, 12:23 PM
  4. [SOLVED] Save As error
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2012, 09:55 AM
  5. Error in Save As
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2009, 04:28 PM
  6. Subscript out of range error - save copy error
    By bg18461 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-13-2006, 11:53 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