adding range values to array

G

Gary Keramidas

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
 
G

Gary Keramidas

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top