Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default question on arrays in vba

hi

i am building an array (arr(n)) of values of n cells in a macro/

i want to check if a cell's (other than those n) value is in thi
array.

is it possible to do it in one step, like

if cells(1,1).value = arr(1 to n) then


Thanks for any hel

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default question on arrays in vba

Yes, try this

If IsNumeric(Application.Match(Cells(1, 1).Value, Arr, 0)) Then
'is in the array
End If

--
Regards

Juan Pablo González

"Keyur " wrote in message
...
hi

i am building an array (arr(n)) of values of n cells in a macro/

i want to check if a cell's (other than those n) value is in this
array.

is it possible to do it in one step, like

if cells(1,1).value = arr(1 to n) then


Thanks for any help


---
Message posted from http://www.ExcelForum.com/



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
3D Arrays DB Excel Worksheet Functions 2 October 10th 05 03:50 PM
Arrays Take too long. VERY HARD QUESTION. my head hurts : / belly0fdesire Excel Worksheet Functions 1 August 6th 05 12:47 AM
formula question for arrays Cynthia Gregory Excel Programming 2 June 18th 04 08:32 PM
Arrays Lacy Excel Programming 3 June 8th 04 07:15 PM
Arrays Luis Neves Excel Programming 1 February 13th 04 01:29 AM


All times are GMT +1. The time now is 01:12 AM.

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

About Us

"It's about Microsoft Excel"