30 Advanced Excel Tips for 2026

Excel Champs / VBA / VBA Invalid Procedure Call Or Argument Error (Error 5)
By Puneet Gogia (Microsoft MVP)

VBA Invalid Procedure Call Or Argument Error (Error 5)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

Table of Content hide
[thrive_leads id=’70897′]

As Microsoft says, an Invalid Procedure Call Or Argument (Error 5) occurs when you have a specified value that is out of the range of the argument or you are using a procedure that is not available in the current Excel platform. The error could be one of these problems that can cause by different reasons.

For example, you are using a VBA function SIN in the code. Now while specifying the value for the argument you go out of the range of numbers then VBA generates this error.

Or lets you have written a code in the Window version of Excel and when you try to run the same code in the Macintosh version you get the Error 5 Invalid Procedure Call or Argument because the procedure you are trying to run is not valid.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel