Redigera

Dela via


Range.Run Method

Definition

Runs the Microsoft Excel macro at this location.

public object Run (object Arg1, object Arg2, object Arg3, object Arg4, object Arg5, object Arg6, object Arg7, object Arg8, object Arg9, object Arg10, object Arg11, object Arg12, object Arg13, object Arg14, object Arg15, object Arg16, object Arg17, object Arg18, object Arg19, object Arg20, object Arg21, object Arg22, object Arg23, object Arg24, object Arg25, object Arg26, object Arg27, object Arg28, object Arg29, object Arg30);
Public Function Run (Optional Arg1 As Object, Optional Arg2 As Object, Optional Arg3 As Object, Optional Arg4 As Object, Optional Arg5 As Object, Optional Arg6 As Object, Optional Arg7 As Object, Optional Arg8 As Object, Optional Arg9 As Object, Optional Arg10 As Object, Optional Arg11 As Object, Optional Arg12 As Object, Optional Arg13 As Object, Optional Arg14 As Object, Optional Arg15 As Object, Optional Arg16 As Object, Optional Arg17 As Object, Optional Arg18 As Object, Optional Arg19 As Object, Optional Arg20 As Object, Optional Arg21 As Object, Optional Arg22 As Object, Optional Arg23 As Object, Optional Arg24 As Object, Optional Arg25 As Object, Optional Arg26 As Object, Optional Arg27 As Object, Optional Arg28 As Object, Optional Arg29 As Object, Optional Arg30 As Object) As Object

Parameters

Arg1
Object

Optional Object. The arguments that should be passed to the function.

Arg2
Object

Optional Object. The arguments that should be passed to the function.

Arg3
Object

Optional Object. The arguments that should be passed to the function.

Arg4
Object

Optional Object. The arguments that should be passed to the function.

Arg5
Object

Optional Object. The arguments that should be passed to the function.

Arg6
Object

Optional Object. The arguments that should be passed to the function.

Arg7
Object

Optional Object. The arguments that should be passed to the function.

Arg8
Object

Optional Object. The arguments that should be passed to the function.

Arg9
Object

Optional Object. The arguments that should be passed to the function.

Arg10
Object

Optional Object. The arguments that should be passed to the function.

Arg11
Object

Optional Object. The arguments that should be passed to the function.

Arg12
Object

Optional Object. The arguments that should be passed to the function.

Arg13
Object

Optional Object. The arguments that should be passed to the function.

Arg14
Object

Optional Object. The arguments that should be passed to the function.

Arg15
Object

Optional Object. The arguments that should be passed to the function.

Arg16
Object

Optional Object. The arguments that should be passed to the function.

Arg17
Object

Optional Object. The arguments that should be passed to the function.

Arg18
Object

Optional Object. The arguments that should be passed to the function.

Arg19
Object

Optional Object. The arguments that should be passed to the function.

Arg20
Object

Optional Object. The arguments that should be passed to the function.

Arg21
Object

Optional Object. The arguments that should be passed to the function.

Arg22
Object

Optional Object. The arguments that should be passed to the function.

Arg23
Object

Optional Object. The arguments that should be passed to the function.

Arg24
Object

Optional Object. The arguments that should be passed to the function.

Arg25
Object

Optional Object. The arguments that should be passed to the function.

Arg26
Object

Optional Object. The arguments that should be passed to the function.

Arg27
Object

Optional Object. The arguments that should be passed to the function.

Arg28
Object

Optional Object. The arguments that should be passed to the function.

Arg29
Object

Optional Object. The arguments that should be passed to the function.

Arg30
Object

Optional Object. The arguments that should be passed to the function.

Returns

Remarks

The range must be on a macro sheet.

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

The Run method returns whatever the called macro returns.

Applies to