Skip to content

Files

Latest commit

author
Docs Allowlist Management
Mar 22, 2024
76d3237 · Mar 22, 2024

History

History
45 lines (26 loc) · 1.35 KB

Excel.Range.Run.md

File metadata and controls

45 lines (26 loc) · 1.35 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.Run method (Excel)
vbaxl10.chm144192
vbaxl10.chm144192
Excel.Range.Run
b7a0480a-9f10-8aad-6592-3cbde72720cd
05/11/2019
medium

Range.Run method (Excel)

Runs the Microsoft Excel macro at this location. The range must be on a macro sheet.

Syntax

expression.Run (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6, Arg7, Arg8, Arg9, Arg10, Arg11, Arg12, Arg13, Arg14, Arg15, Arg16, Arg17, Arg18, Arg19, Arg20, Arg21, Arg22, Arg23, Arg24, Arg25, Arg26, Arg27, Arg28, Arg29, Arg30)

expression A variable that represents a Range object.

Parameters

Name Required/Optional Data type Description
Arg1Arg30 Optional Variant The arguments that should be passed to the function.

Return value

Variant

Remarks

You cannot use named arguments with this method. Arguments must be passed by position.

The Run method returns whatever the called macro returns. Objects passed as arguments to the macro are converted to values (by applying the Value property to the object). This means that you cannot pass objects to macros by using the Run method.

[!includeSupport and feedback]