+ Reply to Thread
Results 1 to 6 of 6

VBA issue changing filter value. How would do I change across multiple sheets?

  1. #1
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    294

    VBA issue changing filter value. How would do I change across multiple sheets?

    Good evening,

    I am having an issue with a workbook I'm putting together. The workbook is creating multiple sheets pulling data from various sources. I've got it working very well with the exception of a filter issue.

    There is a sampling of data that is being put on each created sheet. I only want each sheet to have the data in question related to the value in cell K4. My thought was to simply copy the value out of K4 and then use the filter function to delete out everything that is not needed (see below).

    Please Login or Register  to view this content.
    The problem I'm running into is how to have the code pull the data for K4 on each sheet and not just use the same value (23959394-1) from the first sheet and repeat through the rest of the workbook.

    I can work out everything else in regards to ranges and formats. I am having some difficulty cracking this one nut.

    Any suggestions will be most welcome.

    Thank you so much.
    Last edited by punter; 11-22-2020 at 10:53 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: VBA Filter question

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    294

    Re: VBA Filter question

    I have changed the title to make it as specific as possible.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,812

    Re: VBA issue changing filter value. How would do I change across multiple sheets?

    Much better - thank you.

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: VBA issue changing filter value. How would do I change across multiple sheets?

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  6. #6
    Forum Contributor
    Join Date
    10-28-2003
    Location
    Happyville, USA
    MS-Off Ver
    365
    Posts
    294

    Re: VBA issue changing filter value. How would do I change across multiple sheets?

    That worked perfectly. Thank you so much.

+ 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. Filter Question
    By jmccardell in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-14-2018, 04:11 PM
  2. Filter question
    By Charles_cz in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2012, 08:05 AM
  3. Filter Question
    By Craiglowdon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2007, 03:30 AM
  4. vba filter question
    By crowdx42 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2006, 11:52 PM
  5. [SOLVED] Filter Question
    By bodhisatvaofboogie in forum Excel General
    Replies: 1
    Last Post: 06-20-2006, 11:25 AM
  6. [SOLVED] a filter question
    By [email protected] in forum Excel General
    Replies: 3
    Last Post: 05-16-2006, 04:10 PM
  7. Filter question
    By leon22 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-25-2005, 01:44 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