Joseph.Marro
Board Regular
- Joined
- Nov 24, 2008
- Messages
- 153
Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
I have searched everywhere and I am not sure if I can even accomplish this task. I know you can populate range values into an array without iteration. However, is it possible to convert a range into an array of row numbers without iteration? <o></o>
<o></o>
Example:
<o></o>
How do I Modify this to produce an array containing the row numbers {23,24,25,26,27,28,29,30,31}? Is it even possible without iteration?<o></o>
<o></o>
Thank you,<o></o>
<o></o>
Joseph Marro<o></o>
<o></o>
<o></o>
I have searched everywhere and I am not sure if I can even accomplish this task. I know you can populate range values into an array without iteration. However, is it possible to convert a range into an array of row numbers without iteration? <o></o>
<o></o>
Example:
Code:
Sub Example()
Dim myRange As Range
Dim myArray() As Variant
Set myRange = Range("A23:A31")
myArray = myRange
Set myRange = Nothing
End Sub
How do I Modify this to produce an array containing the row numbers {23,24,25,26,27,28,29,30,31}? Is it even possible without iteration?<o></o>
<o></o>
Thank you,<o></o>
<o></o>
Joseph Marro<o></o>
<o></o>