what is the difference Excel VBA: Call and Run

jamilm

Well-known Member
Joined
Jul 21, 2011
Messages
740
Dear Gurus,

grateful if you could elaborate on the difference between VBA Run and Call


thanks.

best regards,
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
One difference is that with Call the called procedure must be explicitly named, whereas with Run it can be built up by concatenation.
 
Upvote 0
run breaks the call stack. it also allows you to call routines in other (unreferenced) workbooks and private routines. it passes all arguments by value instead of by reference. and as was already said it allows you to pass a string as the routine name. call is generally used within a project unless you need the behavior of run for some reason
 
Upvote 0
run breaks the call stack. it also allows you to call routines in other (unreferenced) workbooks and private routines. it passes all arguments by value instead of by reference. and as was already said it allows you to pass a string as the routine name. call is generally used within a project unless you need the behavior of run for some reason

many thanks Joseph
 
Upvote 0

Forum statistics

Threads
1,215,145
Messages
6,123,291
Members
449,094
Latest member
GoToLeep

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