+ Reply to Thread
Results 1 to 8 of 8

Hide all autofilter arrows in a worksheet without a loop

  1. #1
    Registered User
    Join Date
    09-18-2009
    Location
    Grand Forks, North Dakota
    MS-Off Ver
    Excel 2007
    Posts
    41

    Question Hide all autofilter arrows in a worksheet without a loop

    Hello Everyone,

    I can't for the life of me remember how I did this in one of my worksheets but I did it somehow. I don't ever want to see the autofilter arrows as I am filtering using VBA.


    Justin

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hide all autofilter arrows in a worksheet without a loop

    You can add this code to your existing code where appropriate -
    Please Login or Register  to view this content.
    Last edited by royUK; 01-17-2012 at 11:26 AM. Reason: add code tags
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-18-2009
    Location
    Grand Forks, North Dakota
    MS-Off Ver
    Excel 2007
    Posts
    41

    Smile Re: Hide all autofilter arrows in a worksheet without a loop

    This is so weird. If you run that code it doesn't work though if I run this code:

    Please Login or Register  to view this content.

    It works fine. What is stranger is I only have to run it once then take it out and from there the arrows never come back. There must be a property I am setting in the excel code somewhere by doing this that changes the property for the specific worksheet when it is ran. I'm not completely familiar with how excel works but this seems to be what is happening. THANK YOU FOR YOUR ASSISTANCE :-)


    Justin

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Hide all autofilter arrows in a worksheet without a loop

    You can still reduce the lines of code through this -
    Please Login or Register  to view this content.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hide all autofilter arrows in a worksheet without a loop

    You should be able to restore the arrows by setting the VisibleDropDown to True

    When you ran the With Worksheets(1).Range("A1:P1") code did you have the . in front of AutoFilter?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    09-18-2009
    Location
    Grand Forks, North Dakota
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Hide all autofilter arrows in a worksheet without a loop

    I'm betting I missed the dot :-) Also, are there a set of settings or properties that can be turned on/off like a .ini file for php?

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hide all autofilter arrows in a worksheet without a loop

    I'm not sure what you mean. There's an object browser that might help

  8. #8
    Registered User
    Join Date
    09-18-2009
    Location
    Grand Forks, North Dakota
    MS-Off Ver
    Excel 2007
    Posts
    41

    Re: Hide all autofilter arrows in a worksheet without a loop

    Ok let me reword that.....by using

    Please Login or Register  to view this content.
    I was able to turn off or set the 25th column's VisibleDropDown property to FALSE. Is there a list of Rows/Column properties that can be manipulated like this was?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1