|
|
 |
| Excel VBA Discuss using VBA for Excel programming. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Excel VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

June 8th, 2007, 03:33 AM
|
|
Authorized User
|
|
Join Date: Apr 2007
Location: Silvassa, Dadra & Nagar Haveli, India.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Remove Autofilter
Please guide how to remove the autofilter applied previously to the range of cells.
Yogesh
__________________
Yogesh
|

June 9th, 2007, 04:26 PM
|
|
Registered User
|
|
Join Date: May 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Yogesh,
You should first check if the Sheet has an Autofilter applied first, and if so, then all you have to do is just create an autofilter on any range to turn it off. Something like:
Code:
Sub TurnOffAutofilter()
If Worksheets("Sheet1").AutoFilterMode = True Then _
Worksheets("Sheet1").Range("A1").AutoFilter
End Sub
Hope this helps :)
|

June 11th, 2007, 04:58 AM
|
|
Authorized User
|
|
Join Date: Apr 2007
Location: Silvassa, Dadra & Nagar Haveli, India.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks malik, i got the solution by using the bewlo statement.
ActiveSheet.AutoFilterMode = False
Yogesh
|

June 11th, 2007, 04:59 AM
|
|
Authorized User
|
|
Join Date: Apr 2007
Location: Silvassa, Dadra & Nagar Haveli, India.
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks malik, i got the solution by using the below statement.
ActiveSheet.AutoFilterMode = False
Yogesh
|

June 11th, 2007, 07:59 AM
|
|
Registered User
|
|
Join Date: May 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ah yes. Forgot about that.
Glad to see you got it going :)
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |