Autofilter

BarrettM

Board Regular
Joined
Mar 13, 2002
Messages
113
I have a worksheet with about 35 columns in use Called Worksheet 'A'. I have autofilter switched on. I can filter this data for views which I then save to another workbook using a macro.

The problem is that I need to be able to select the entire view (no filtered data) using VBA before I import new data into this sheet (Worksheet A).

Can anyone offer any help? If I'm not making this clear enough, I will try to explain further.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this:

Set w = Worksheets("Sheet1")
If w.AutoFilterMode Then
' If autofilter is on, toggle it off to reset
w.Range("Range").AutoFilter
End If
 
Upvote 0

Forum statistics

Threads
1,215,113
Messages
6,123,165
Members
449,099
Latest member
afishi0nado

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