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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
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,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

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