+ Reply to Thread
Results 1 to 2 of 2

Selection Change Macro Error when Autofilter Hides Row

  1. #1
    Registered User
    Join Date
    09-14-2010
    Location
    Maryland, United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Selection Change Macro Error when Autofilter Hides Row

    I have a selection change macro in a file that updates only when the selection occurs in the "NIIN" column of values. The macro works fine unless you apply a filter (from the preapplied AutoFilter) that hides the row that is currently being graphed and even if I select a now visible cell it continues to error.

    I have tried to handle it by selecting F11 in the gray and then moving down to the first visible row, but that isn't the answer.

    Any help is appreciated. Also if there is a better way to achieve updating a graph of one row based on the currently selected row, I am open to ideas.
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Selection Change Macro Error when Autofilter Hides Row

    When do you actually want the code to be executed?
    If posting code please use code tags, see here.

+ 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. [SOLVED] Macro Error on Filtering – “Run-time error ‘1004’ Autofilter method of range class failed
    By kschmit1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2019, 11:49 AM
  2. [SOLVED] Macro hides rows on button press but other Functions referenced then display ERROR message
    By dougielb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 09:32 AM
  3. multiple selection using VBA macro in autofilter
    By mobeenraheem in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2014, 07:40 AM
  4. [SOLVED] Combo box selection hides columns that do not match
    By nadishon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-06-2013, 09:24 AM
  5. Replies: 5
    Last Post: 06-21-2013, 08:42 AM
  6. [SOLVED] Combo box selection displays textboxes or hides them, help please.
    By RTR97 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 12:31 PM
  7. Autofilter Hides Data
    By craig.jenkins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2009, 08:11 AM

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