Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
This may fall under the MSKB213199, but I wanted to see if anybody knew of a way to do this. We have a function that looks through the worksheet for all occurrences of that function (grouping the parameters of that function for an OPC call). I have no trouble finding the cells that contain the function with that name. However, what I want to do is find the selected range of each of those function calls (top left and bottom right cells). I tried to use the CurrentArray property of the cell that is found to contain the function, but it only gives me a range containing that cell, not the entire range. For example, if the function is found in an array from B2:D3, the CurrentArray.Rows.Count = 1 (same for columns). That gives an offset of (0, 0), which makes the first cell = last cell = B2. Any ideas? I am trying to get around the problem with assuming the shape and size of the formula array. Thanks, G72 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I enter formula sum(range+range)*0.15 sumif(range=3) | Excel Discussion (Misc queries) | |||
conditional formula: sum a range if text present in another range | Excel Discussion (Misc queries) | |||
formula to sort a range so that it matches the exact rows of a column that is outside that range? | Excel Discussion (Misc queries) | |||
Macro to input formula in range based on another range | Excel Programming | |||
Range.Formula and Range question using Excel Automation | Excel Programming |