The line
converts the list object "Table1" to a range. If you had 2 or more tables in a sheet you could convert a specific table to a range by using the "ListObject" number
The
is a term defined by Excel and it is of course the "used range" in a sheet. If you have a range B2 to H10 with data the command "used range" will select this area.
The downside of this command is that if you had some comments or a value in a cell says M3 then this command will select the range B2 to M10 as the "used range"
The "CurrentRegion" is a bit different in its behaviour. First you must select topmost left cell so using the example above the command would be
and this will select range B2:H10 as "current region" expects data to be coherent. If there is a blank row or a blank column this will stop the selection of what is the "current region". So in this case the data in M3 will be ignored when "CurrenRegion" is "selected". For working with tables "CurrenRegion" is rather useful as you can mix tables and comments knowing that comments will be ignored as long as there is a blank line or column between your table and comments.
As the "UsedRange" command after filtering will contain both the headings and the filtered values and I don't wish to delete the headings I use the offset command to delete all rows starting one row below. The offset command contains the row offset and column offset. Used the way I did it is "translated" as a row offset.
For your last question see Microsoft link
http://msdn.microsoft.com/en-us/libr...ffice.12).aspx
Alf
Bookmarks