is the table part of the chart or a range below it? the code ought to work as far as I can tell