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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,914
Messages
6,127,690
Members
449,398
Latest member
m_a_advisoryforall

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