Reset filter code only works on my machine

uson

New Member
Joined
May 9, 2011
Messages
27
Hi all,

We have a group workbook used by multiple people (some 2003, some 2007) - most columns have filters. I have some code - below - that I got from this site (MrExcel has been so helpful!!) placed in ThisWorkbook to execute when it opens to reset the AutoFilters so the user opening the workbook will see all the rows of the spreadsheet. The workbook is saved as a XLSM file. The code worked fine when I tested it on my machine but does not reset the filters for other users (2003 and 2007). What am I missing? :confused:


Private Sub Workbook_Open()
Sheets("Portfolio").Select
On Error Resume Next
ActiveSheet.ShowAllData
Err.Clear
End Sub

Thanks.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
It is because your file is saved as "XLSM" file.
This type of file is only supported by XL2007 and above.

I suggest you re-save the file as "xls (98-2003) file" and see what happens.


If you are using a table functionality in excel2007, you will notice colors have disappeared in the excel2003.

Didi you create the filters with VBA or just manually?
 
Upvote 0

Forum statistics

Threads
1,224,560
Messages
6,179,519
Members
452,921
Latest member
BBQKING

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