+ Reply to Thread
Results 1 to 6 of 6

HELP: Need to use a value from another sheet as the criteria for a filter.

  1. #1
    Registered User
    Join Date
    04-04-2013
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    69

    HELP: Need to use a value from another sheet as the criteria for a filter.

    Hey All,

    I need help with creating a macro. The code I have is currently messy and I will clean it up after I solve this but the bare bones of what I want to do is as follows.

    selects cell A in sheet A --> go to another sheet B --> filter that sheet for the attribute based on the value inputed in cell A --> Copy all values in sheet B under Column B who shares an attribute in Column A which is filtered by cell A --> Go to Sheet A and copy column B values into sheet A. --> Conditional Formating and Look Pretty

    The problem with the code is that when it gets to the part where it has to filter, instead of using the cell A from sheet A as the filter criteria it uses the text I had in cell A sheet A when I initially recorded the macro. I want this macro to be used anytime i change the values in cell A sheet A

    PLEASE HELP!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    Hi rgrocks ,

    Can you attach a copy of workbook. You code is recorded and some information I cannot figuere out.

    Thanks

  3. #3
    Registered User
    Join Date
    04-04-2013
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    I cant upload it onto the forum but here is a link to it on my dropbox

    http://db.tt/LZDW5hab

  4. #4
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    Hi,

    See if this code helps

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-04-2013
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    Thanks alot, This is my first time using MACRO's so I just recorded my actions. I have no Idea how to create a macro using text. How do I create a macro using the code you sent me?

  6. #6
    Registered User
    Join Date
    04-04-2013
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    I found a way to do it. Not sure if its the proper way but it works!!! THANK YOU!!!

    I know this might be too much to ask since you have helped me beyond words but I see you wrote comments in the code. Could you describe what is going on with greater detail so that I may learn and implement it in the future.

    Also could you point me to a website to learn more?

    Thanks again!

  7. #7
    Valued Forum Contributor fredlo2010's Avatar
    Join Date
    07-04-2012
    Location
    Miami, United States
    MS-Off Ver
    Excel 365
    Posts
    762

    Re: HELP: Need to use a value from another sheet as the criteria for a filter.

    Use this website to search for each keyword I used in my code

    http://msdn.microsoft.com/en-US/libr...ffice.15).aspx

    I am glad I was able to help

+ 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. Replies: 2
    Last Post: 02-14-2013, 11:06 PM
  2. [SOLVED] Using data as criteria to set a filter on an other sheet
    By Tino XXL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-04-2013, 09:01 AM
  3. [SOLVED] Filter with certain criteria on active sheet
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 03:35 AM
  4. Filter based on multiple criteria in other sheet
    By prashantsd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2012, 09:08 AM
  5. [SOLVED] FILTER DATA IN SHEET A WITH CRITERIA IN SHEET B (macro)
    By ronz77 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-17-2012, 12:38 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