godparticle
New Member
- Joined
- Feb 2, 2018
- Messages
- 5
I asked something similar a while ago, but could never get a solid answer. Here goes again. I want to understand why and not an alternative solution. Any help would be appreciated.
Suppose I have a 2x2 table with header and want to write to the first row like this:
set rng = listobjects(1).listrows(1).range
rng(2) = "blah"
my questions are:
1. By omitting an argument to rng, am I essentially saying rng( ,2)
2. If i put rng(3), it goes to the next row down. Shouldn't it cause an error if I try to go outside the range specified(range was set to row length of 2)?
Something similar happens if I have no table and set the range like this:
set rng = range("A1:C1")
rng(4) <--- goes to the next row down which is A2
Suppose I have a 2x2 table with header and want to write to the first row like this:
set rng = listobjects(1).listrows(1).range
rng(2) = "blah"
my questions are:
1. By omitting an argument to rng, am I essentially saying rng( ,2)
2. If i put rng(3), it goes to the next row down. Shouldn't it cause an error if I try to go outside the range specified(range was set to row length of 2)?
Something similar happens if I have no table and set the range like this:
set rng = range("A1:C1")
rng(4) <--- goes to the next row down which is A2