+ Reply to Thread
Results 1 to 6 of 6

Macro Error - Invalid Procedure Call or Argument

  1. #1
    Registered User
    Join Date
    05-12-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Macro Error - Invalid Procedure Call or Argument

    I have a macro with the following code:

    Please Login or Register  to view this content.
    The macro prompts the user to save the file to computer. When the OK button is clicked, it presents the "Invalid Procedure Call Or Argument" error message. I believe this has something to do with the specific computer. This code works on other systems (deployed this code to 10 different machines and this is the only one with this issue).

    Any ideas?

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Macro Error - Invalid Procedure Call or Argument

    Which line is giving you the error? Saving as a PDF uses an AddIn, do all computers have the AddIn installed?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    05-12-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Macro Error - Invalid Procedure Call or Argument

    They all use Excel 2007. I believe that functionality is built into it somehow.

    It doesn't show which line is giving the error either. It just errors out right after clicking OK on the save dialog box

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macro Error - Invalid Procedure Call or Argument

    That functionality is built in if you have SP2 installed, but if not, it requires an addin.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    05-12-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Macro Error - Invalid Procedure Call or Argument

    XP Machine running SP3. It does have the .Net applications installed as well.

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macro Error - Invalid Procedure Call or Argument

    I mean Office 2007 SP2, not a windows service pack. .Net components are irrelevant here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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