You,
The easiest way is to use a range in your sort macro that extends to the
bottom of the worksheet. Doesn't work so well if you have totals or other
stuff after your list.
In that case, you can use a named range, and your macros can "know" when a
range has been extended. In many cases, you can use the CurrentRegion in
the range to be sorted. Or you can define your range (Insert - Name -
Define), use that name in your Sort method in the macro, and leave an empty
row at the bottom, inserting new rows just before that one. The range
expands as you insert rows. Another is the Dynamic Range technique. It
depends on some column always having an entry in your rows. All this
depends on how your table has been set up.
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------
itsme said:
Is there a way to have macros update when you change the sheet. For example:
If you have a macro that does a sort and you later add rows the macro
doesnt seem to know that rows were added?