Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Find Method Used within Values in an Array of Ranges

Hello,

I am trying to search through the elements in an array (each of which
is a range object).

I would like to use something like

set c=worksheets(1).myarray.find(1,lookin:=xlvalues),

but this doesn't work.

Any tips?

Regards,

Calvin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Find Method Used within Values in an Array of Ranges

if each element is a range object, then thay each are on a specific sheet and
need no qualification.

however, you can't just use myarray.find with an array of range objects.

if all the references are on a single sheet you might try

set r = myArray(lbound(myArray))
for i = lbound(myArray)+1 to Ubound(myArray)
set r = Union(r,myarray(i))
Next
set c = r.find(1,lookin:=xlvalues),

else you will have to search each element of the array in a loop.

--
Regards,
Tom Ogilvy


" wrote:

Hello,

I am trying to search through the elements in an array (each of which
is a range object).

I would like to use something like

set c=worksheets(1).myarray.find(1,lookin:=xlvalues),

but this doesn't work.

Any tips?

Regards,

Calvin


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find duplicate values in an array Bony Pony[_3_] Excel Discussion (Misc queries) 8 February 15th 10 01:44 PM
Is there a method to find distinct values in a column Ivan Excel Programming 5 December 22nd 05 04:50 PM
Find method - finding multiple values nathan Excel Programming 6 August 23rd 05 10:13 PM
Create a Chart with Values from Array AND NOT from Ranges syrhus Charts and Charting in Excel 5 March 19th 05 02:37 AM
find minimum values in recurring ranges--expert xadnora Excel Programming 2 March 2nd 05 02:07 PM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"