I'm using Excel 2000 and I need some way to automatically define a
worksheet's range (e.g. a1...m404) as well as number of rows (e.g.
404)
I have a macro written now that manipulates a worksheet, but it only
works if the sheet is 404 rows. I did this by using the record feature
and the navigation keys, but the record feature fills in the actual
number. So, the next worksheet I used the macro again figured it was
404 rows.
I need to be able to accommodate a worksheet with any number of rows. |
Request for Question Clarification by
maniac-ga
on
07 Aug 2005 20:41 PDT
Hello Jesser,
I need a little more information before posting a full and complete answer.
There are at least three methods in Excel to "determine a range of
cells" and the number of rows in a worksheet:
- the "current region"
- the "last cell"
- the "current array"
The "current region" refers to the range of rows / columns without
blank rows or columns. I am guessing you want this but cannot be sure
from your explanation.
The "last cell" refers to the last cell w/ any data and/or formatting.
The "current array" refers to a set of cells in an "array formula";
this is pretty infrequently used but I am listing it for completeness.
If you use the menu
Edit -> Go to -> Special...
and select each of these, you can see how they work. Please indicate
which one you need (or let me know if you need more than one
explained).
Also, could you post a couple of the key lines (those that refer to
the 404 rows) from the Visual Basic macro in a clarification so I can
give you the best way to change them to do what you want.
--Maniac
|
Clarification of Question by
jesser-ga
on
08 Aug 2005 09:06 PDT
Hi -
Option A worked for me. Using your steps, I was able to get around the issue.
Thanks,
|
Request for Question Clarification by
nenna-ga
on
08 Aug 2005 11:17 PDT
So, would you like the researcher to post his/her suggestion as an
answer since it did answer your question?
Nenna-GA
|
Clarification of Question by
jesser-ga
on
08 Aug 2005 16:19 PDT
Sure. Is there some process where I accept the answer so the paerson
gets paid? Sorry for delay in responding, I've had intermittant
internet connections and resorting to dialin.
|
Request for Question Clarification by
nenna-ga
on
08 Aug 2005 17:15 PDT
Hi Jesser,
No, you don't have to do anything. I've made an attempt to notify
Maniac to let them know you wanted their clarification as an answer.
Hopefully they'll show up, post an official answer in the answer box,
and it'll all be taken care of :)
Nenna-GA
|