![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 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. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Posts: 113
|
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 |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Northern Ireland
Posts: 113
|
Thanks kmiles, works great
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|