+ Reply to Thread
Results 1 to 6 of 6

Invalid procedure call or Argument (please help)

  1. #1
    Registered User
    Join Date
    05-14-2019
    Location
    Provo, Utah
    MS-Off Ver
    2013
    Posts
    26

    Angry Invalid procedure call or Argument (please help)

    I have this code that was working to export all my tabs based of their names (which are variables)
    Now i am getting an error code for "Invalid procedure call or argument"

    What needs to change?
    Please Login or Register  to view this content.
    Last edited by 6StringJazzer; 10-15-2019 at 12:32 PM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: Invalid procedure call or Argument (please help)

    Do you get the error for every sheet?
    Rory

  3. #3
    Registered User
    Join Date
    05-14-2019
    Location
    Provo, Utah
    MS-Off Ver
    2013
    Posts
    26
    Quote Originally Posted by rorya View Post
    Do you get the error for every sheet?
    It wouldn’t even get to that point. The error comes up before anything else

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: Invalid procedure call or Argument (please help)

    So it's a compiler error? Which line is highlighted?

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Invalid procedure call or Argument (please help)

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    I am having a similar problem. "Invalid procedure call or argument" is runtime error 5. I have several files that are all made from the same template and only one of them causes this error. I inserted a line of code to use a short file name in case that was the problem but it still fails. In the case of the OP, length is not the issue since the path isn't too long and a sheet name cannot exceed 32 characters (one source says the full path name cannot exceed 281 characters, though I have not confirmed this).
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: Invalid procedure call or Argument (please help)

    There is no way to tell without the file but this error will occur if a sheet is not visible.

+ 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. Invalid Procedure Call or Argument
    By theTaoJones in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2018, 03:23 PM
  2. Invalid procedure call or argument?
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-03-2017, 10:15 AM
  3. Invalid procedure call or argument
    By Netzqua in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2016, 11:45 AM
  4. Invalid Procedure Call or Argument?
    By aloha31 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-19-2013, 08:24 PM
  5. Invalid procedure call or argument
    By krish T in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-31-2010, 10:01 AM
  6. Invalid procedure call or argument
    By mqdias in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-08-2007, 06:01 AM
  7. Invalid Procedure call or argument
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-25-2006, 10:05 AM

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