OUTLOOK: VBA error no 5 invalid procedure call

dita_dk

New Member
Joined
Jan 11, 2018
Messages
11
I have recently shifted from Office 2010, to Office 2013, however my macro, which i use from Outlook is not working anymore.
The functionality is extracting data from the Calendar, to Excel.

Error message is as in subject title. Error No: 5; description: Invalid procedure call or argument

VBA Code will be posted below
 
Re: VBA error no 5 invalid procedure call

By changing to your second, i got Run-time error '-2147221020 (800401e4)
Automation error

And by changing to example 1, i got a compile error
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Re: VBA error no 5 invalid procedure call

Error comes both with and without Excel running

No, only with Excel closed, this error comes. But the other error still persist, even with excel open.
In office 2010 the macro did start Excel it self, but not here?
 
Upvote 0
Re: VBA error no 5 invalid procedure call

Which line causes the other error when Excel is already open?
 
Upvote 0
Re: VBA error no 5 invalid procedure call

When Excel is opened manually before activating the script, i get this error 5, invalid procedure call.

Debugging end up at line:
AppActivate "appExcel"
 
Upvote 0
Re: VBA error no 5 invalid procedure call

That should really be:

Code:
AppActivate appExcel.caption
 
Upvote 0
Re: VBA error no 5 invalid procedure call

That should really be:

Code:
AppActivate appExcel.caption

Awesome - now it works :)

Anybody who can solve the problem that causes an error, when you dont open Excel, before running the macro ?
 
Upvote 0
Re: VBA error no 5 invalid procedure call

If you re-enable the error handler it should work.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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