+ Reply to Thread
Results 1 to 11 of 11

How to Make a Macro to filter then reset all the rows

  1. #1
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Red face How to Make a Macro to filter then reset all the rows

    Hello

    I'm trying hard to make this macro work, but i keep failing.
    This is why i ask for you guys help, probably you are smarter than me.

    This is the basic problem:

    1, I want to make this button Hide all the rows which don't contain data in this column. (other columns stay there just become empty as the filter applies)
    3, This i want to make as a reset button, to reset the view.

    Please take a look at my problem, and help me solve it, i would be really thankful

    excelhelp.jpg

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Make a Macro to filter then reset all the rows

    Hi

    Try these.

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: How to Make a Macro to filter then reset all the rows

    wow, thanks for the quick reply, looks like you made my day, Its working!
    Only one thing is missing from my script and its done.
    Could you? im really not good in excelling

    The "Unhide" only makes the row E visible again but its possible that im hiding the other rows 2, but it bring back only E

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Make a Macro to filter then reset all the rows

    Ok. E is a column. Not a row. So first macro hides ALL rows that in column E the speccific rows are without values.

    The unhide does the opposite!

    So not able to follow you. Perhaps if you'll explain a little more..

  5. #5
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: How to Make a Macro to filter then reset all the rows

    okay my mistake

    So i changed your script to apply for more columns. there is E F G H +unhide
    If i click F than unhide, it does not bring it back.
    i tried to put:
    If .Range("E:H" & i).Value = "" Then

    it does not unhide everything
    hope you understand me

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Make a Macro to filter then reset all the rows

    Apologize for the delay but still not sure about your request..Do you mean?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: How to Make a Macro to filter then reset all the rows

    Worked out great. Its working like a charm. Thanks. you're the man!!! :D

  8. #8
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: How to Make a Macro to filter then reset all the rows

    One more little thing:

    What is the opposite of: Cells.Select ?
    Cells.unselect aint working

    the cells are still selected after running this command

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Make a Macro to filter then reset all the rows

    Try in this way(as there is not exactly the option unselect).

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    11-11-2013
    Location
    hun
    MS-Off Ver
    Excel 2013
    Posts
    76

    Re: How to Make a Macro to filter then reset all the rows

    All my problems [SOLVED] !!! Thank you Fotis!

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to Make a Macro to filter then reset all the rows

    You are welcome and thanks for the feedback.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. Add Filter to top row and reset page so (A1) is only cell highlighted
    By floydian in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 07:38 AM
  2. Make filter ignore some rows
    By douglascaixeta in forum Excel General
    Replies: 1
    Last Post: 02-22-2012, 10:07 AM
  3. How to make my macro delete rows? It currently hides the rows instead of deleting.
    By Majkataxmk in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-20-2010, 01:14 PM
  4. How to reset pivot table filter field box contents
    By gjcase in forum Excel General
    Replies: 3
    Last Post: 09-30-2008, 10:30 AM
  5. Replies: 1
    Last Post: 03-03-2006, 08:45 PM

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