Glory
Well-known Member
- Joined
- Mar 16, 2011
- Messages
- 640
I need a way to refer dynamically to the column argument in a range statement.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
This isn’t working:
<o> </o>
<o> </o>
The desired result is “Range(“A2”)”, except the column will change to become “B” and “C” as the code loops.
<o> </o>
Any ideas?
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
This isn’t working:
<o> </o>
Code:
e = 1
<o:p> </o:p>
Range(Cells(1, e).Columns & “2”).
The desired result is “Range(“A2”)”, except the column will change to become “B” and “C” as the code loops.
<o> </o>
Any ideas?