Consulting

Results 1 to 5 of 5

Thread: Access to info in Status Bar when in autofiltermode

  1. #1
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location

    Access to info in Status Bar when in autofiltermode



    When a filter is activated a message appears in the status bar "5 of 10" cases whatever the case maybe.

    Is it possible to get access to the information displayed in the status bar to be displayed e.g. in a userform?

    Thanks in anticipation.

    Regards

    Zagrijs

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    Not easily, no. You could use API calls but it would be far simpler to just count the visible rows in your code!
    Be as you wish to seem

  3. #3
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location
    Thanks Aflatoon.

    I have been doing exactly that, i.e. counting the visible rows. I was hoping there might be a simple single command statement possible the would be "cleaner", simpler and quicker.

  4. #4
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    What are you using? Something like:
    your_range.columns(1).Specialcells(xlcelltypevisible).count
    should be sufficient.
    Be as you wish to seem

  5. #5
    VBAX Regular
    Joined
    Sep 2011
    Posts
    78
    Location
    I used a loop.

    I expected there should be a better way.

    Thanks this makes things much easier.

Posting Permissions

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