PC Review


Reply
Thread Tools Rate Thread

adding range values to array

 
 
Gary Keramidas
Guest
Posts: n/a
 
      12th Mar 2007
what would be some options for adding only values in this range that are not
blank to the array?

arr = .Range("B12:B" & lRow).Value
--


Gary



 
Reply With Quote
 
 
 
 
Gary Keramidas
Guest
Posts: n/a
 
      12th Mar 2007
this is what i have right now:

For k = 12 To 33
If .Range("B" & k).Value > "" Then
l = l + 1
ReDim Preserve arr(1 To l)
arr(l) = .Range("B" & k).Value
End If
Next

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com> wrote in message
news:%(E-Mail Removed)...
> what would be some options for adding only values in this range that are not
> blank to the array?
>
> arr = .Range("B12:B" & lRow).Value
> --
>
>
> Gary
>
>
>



 
Reply With Quote
 
Gary Keramidas
Guest
Posts: n/a
 
      12th Mar 2007
no need to reply, i did something different using 2 arrays.

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com> wrote in message
news:%(E-Mail Removed)...
> what would be some options for adding only values in this range that are not
> blank to the array?
>
> arr = .Range("B12:B" & lRow).Value
> --
>
>
> Gary
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range to an Array doesn't contain values JerryH Microsoft Excel Programming 6 26th Mar 2009 03:11 AM
range values in an array? =?Utf-8?B?TWlrZQ==?= Microsoft Excel Programming 3 16th Dec 2005 04:56 PM
Extracting a 2 dimensional array of values from a range of Excel Values. Greg Microsoft C# .NET 2 25th Nov 2005 03:40 PM
Adding values to 2-dim array Tod Microsoft Excel Programming 4 28th Nov 2004 08:13 AM
Create Array From Values in range Tony Di Stasi Microsoft Excel Programming 2 27th Feb 2004 09:40 PM


Features
 

Advertising
 

Newsgroups
 


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