EXCEL GET RANGE: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
No edit summary
Mikeo (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[:Category:Excel|{{Up}}]]
{{Command|syntax=EXCEL_GET_RANGE <range number>, <row 1>, <col 1>, <row 2>, <col 2>
{{Command|syntax=EXCEL_GET_RANGE <range number>, <row 1>, <col 1>, <row 2>, <col 2>
|description=:Get a range of cells from an excel document for later use in the macro.
|description=:Get a range of cells from the currently open excel document for use with a dropdown menu.


|param1=<range number>|param1_desc={{range number}}
|param1=<range number>|param1_desc={{range number}}
|param2=<row 1>|param2_desc={{row 1}}
|param2=<row 1>|param2_desc={{row 1}}
|param3=<col 1>|param3_desc={{col 1}}
|param3=<col 1>|param3_desc={{col 1}}
|param4=<row 2>|param4_desc= {{row 2}}
|param4=<row 2>|param4_desc={{row 2}}
|param5=<col 2>|param5_desc={{col 2}}
|param5=<col 2>|param5_desc={{col 2}}
}}
}}


===Example===
===Example===
:EXCEL_GET_RANGE 2, 2, 4, 6, 5
:EXCEL_GET_RANGE 2, 2, 2, 6, 5
 
:Note. The range must be 1 dimensional. Either the same start and end row, or the same start and end column.


[[Category:Excel]]
[[Category:Excel]]

Latest revision as of 17:51, 12 January 2011

Up

Command

EXCEL_GET_RANGE <range number>, <row 1>, <col 1>, <row 2>, <col 2>


Get a range of cells from the currently open excel document for use with a dropdown menu.

Parameters

<range number>
Range number (1 to 10).
<row 1>
Start row number
<col 1>
Start column number
<row 2>
End row number
<col 2>
End column number

Example

EXCEL_GET_RANGE 2, 2, 2, 6, 5
Note. The range must be 1 dimensional. Either the same start and end row, or the same start and end column.