Unwanted borders in middle of autofiltered data table

spredetc

New Member
Joined
Apr 9, 2015
Messages
1
Hi,

I've created a macro that applies filter criteria to two Excel data tables on the same sheet. In the row immediately following each of the data tables, there is a row which contains Subtotal functions. The subtotal row (below the data table) is formatted with a double-line border along the top of the cells all the way across and beyond the data table.

The macro's filtering works fine on both tables, but a double-lined border (similar to that on the subtotal row at the bottom of the list) will sometimes show up on rows in the middle of the list as well. Once it shows up, it doesn't go away unless I (1) insert a row below, then delete that new row or (2) resize the data table's range (such as extending it out a column). All efforts to use normal Border formatting options do not work. Applying a different border or using Erase Border has no effect.

Any suggestions as to what is causing the persistent phantom borders and how to get rid of them using VBA or otherwise would be greatly appreciated.

Thanks!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,215,329
Messages
6,124,302
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top