DumbCluck,
First, no you are not a dummy, you just don't know. Hopefully we can teach
you.
Second, what do you mean by "How can I get it to go to the bottom of the
data regardless of the number of rows?"? After it is done running, do you
want the active/selected cell to be in the last row of the data? Do you
want some message or number to be entered in one of the cells in the last
row?
Also, the last row of your data and the last row of what XL thinks is the
"Used Range" might be 2 different rows.
Your code doesn't do anything.......it just moves around to different cells
and puts "this is a test" into a cell before column I in row 41.
What would you like it to do?
If you want the active/selected cell to be in the last row of what XL thinks
is the used range, then move the line
"Selection.SpecialCells(xlCellTypeLastCell).Select" to the end (you could
have it replace "Range("B41").Select".
Now if you want the active/selected cell to be in the last row of your data,
and the last row of your data and the last row of the used range are
different, then that is slightly more complicated. I'll need to get some
more info from you. Do you want it to be any cell in the last row or a
specific cell in the last row? Also, we will need to use a column that has
contents in every row of your data in order to find the last row of your
data.
HTH,
Conan