VBA: Invalid procedure call or argument

carolinauser

New Member
Joined
Aug 18, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello everyone!

I have a file that I use almost everyday, and today when I ran the macro an error appeared " Invalid procedure call or argument" and there is only "Ok" or "Help" to press, there is not Debugger. When I press ok, the selection is on the first line "Sub xxx"

I tried to run all the macros in the file and the same message appears

Has this happened to anyone?? how can I solve it?

Capture.PNG
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Welcome to the forum.

How do you trigger the macros?
 
Upvote 0
Welcome to the forum @carolinauser

Try manually stepping through the simplest macro and you will probably work out what is wrong
- in VBA editor click on macro and keep hitting {F8} until it fails

If this worked correctly before then perhaps the VBA has been changed very recently and a "gremlin" introduced somewhere
- perhaps an incomplete sub or function
- perhaps an argument is not within a valid range etc

The fact that it affects many macros could point to an event macro being triggered and the problem being related to that
Worksheet_SelectionChange??
Worksheet_Change??
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top