Program name: Difference between revisions
added vba
(→{{header|OCaml}}: the different executions) |
(added vba) |
||
Line 1,006:
./filename
</pre>
=={{header|VBA}}==
VBA can retrieve the name of the program hosting the VBA code using the <code>Application</code> object:
<lang vb>Debug.Print Application.Name</lang>
This is mostly useful for code that is shared between, say, [[wp:Microsoft Excel|Microsoft Excel]] and [[wp:Microsoft Word|Microsoft Word]], but has different requirements or actions depending on where it's running.
=={{header|Visual Basic}}==
|