Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default adding range values to array

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



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default adding range values to array

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
...
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





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default adding range values to array

no need to reply, i did something different using 2 arrays.

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
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
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
range values in an array? Mike Excel Programming 3 December 16th 05 04:56 PM
Adding or Deleteing Rows in a Range with an Array formula Casey Excel Programming 2 October 3rd 05 08:27 PM
Adding values to 2-dim array Tod Excel Programming 4 November 28th 04 08:13 AM
Array of Values from Worksheet Range - What does it 'look' like? Alan Excel Programming 7 July 8th 04 01:06 PM
Adding range to array, keep formatting Mike[_69_] Excel Programming 4 February 16th 04 06:30 PM


All times are GMT +1. The time now is 01:54 PM.

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"