+ Reply to Thread
Results 1 to 5 of 5

Excel filtering and result viewing

  1. #1
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Excel filtering and result viewing

    Hi everyone - I created some VBA code in Excel that filters on records based upon a cell value in another sheet. It works just fine as is but one of the annoying things about the filtering process is that once I filter, I do not immediately see the results in the viewing window, I have to scroll upwards a few times before I see the filtered records. My concern for this is that if another user filters on a record and is brought to the sheet where the results are and doesn't immediately see the results, that he will think that there are no records.

    My question is, how can I bring the filtered results into view so that I can at least see some records?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel filtering and result viewing

    Hi,

    One way would be to move the cursor as the last line of your macro.

    e.g.

    Please Login or Register  to view this content.
    Assuming of course that the filtered sheet is currently the Active sheet. If not Activate the filtered sheet first.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Excel filtering and result viewing

    Hello philozelda,

    One way is to add this Last line to your Code, just before End Sub:

    Please Login or Register  to view this content.
    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Registered User
    Join Date
    02-21-2014
    Location
    Connecticut, U.S.A.
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Excel filtering and result viewing

    Thank you both for your reply. Both solutions work in that the cursor is placed at the last row after the filter is applied. However, the last row available in the filtered selection is not visible after applying your suggested methods. I believe it has something to do with the freeze pane being applied.

    I will try a work around that may include removing the freeze pane, filtering, placing the cursor on the last cell and then reapplying the freeze pane...my hunch is this might solve the problem.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Excel filtering and result viewing

    Would you upload the workbook and clearly describe what you are filtering and what the Active cell should be after the macro has run.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro for filtering, calculating, logging result, and repeat...
    By cabrego in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2014, 03:05 PM
  2. Filtering Results and Copying Each Result to a Seperate Sheet
    By gjaylward2008 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-16-2012, 04:10 PM
  3. Excel: Filtering values and generating an average result
    By Phil Archer in forum Excel General
    Replies: 4
    Last Post: 09-02-2011, 02:03 PM
  4. Replies: 2
    Last Post: 04-06-2009, 10:30 AM
  5. disabling macros result in viewing data
    By rajgud1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2009, 01:48 PM
  6. Custom viewing/sorting/filtering
    By b0x in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 03-11-2008, 11:51 AM
  7. Filtering a Top or Bottom 10 result set
    By Joe in forum Excel General
    Replies: 1
    Last Post: 03-29-2006, 02:55 PM

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