hello
Please Login or Register to view this content.
hello
Please Login or Register to view this content.
Last edited by alansidman; 10-29-2017 at 12:29 PM.
Hi Sohail
This might be of some help.https://www.techonthenet.com/excel/f...x_function.php
your line of code is evaluating half of the function.
Teach me Excel VBA
Index function will return an array, also extracts part of the array.
When you need to extract part of array, the first argument must be 2d array and the 2nd argument must be a single d array,
unless you extract one whole row or column.
Evaluate method accepts 2d array so, Evaluate("row(1:" & lr & ")") will return
1
2
3
4
.
.
lr
so, it return array that is 1 to lr row with 1 & 2 columns.
but what mean array(1,2) and where is array?
The VBA Array function just gives you a way to supply an "array" or group of values to other functions. Here it returns {1,2}.
Your whole construction:...returns a subsection of the cells on Sheet1 defined as the intersection of rows 1 to lr with columns 1 to 2, = Range A1:BlrPlease Login or Register to view this content.
Last edited by leelnich; 10-29-2017 at 11:31 AM.
Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee
So, anybody, could this:
be re-written as:Please Login or Register to view this content.
???Please Login or Register to view this content.
Last edited by alansidman; 10-29-2017 at 12:30 PM.
Thank you very much for all of you i really appreciate all of you
once again thanks
Code Tags Added
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html
(I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks