+ Reply to Thread
Results 1 to 2 of 2

Dynamic Filter

  1. #1
    Registered User
    Join Date
    08-11-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2010
    Posts
    6

    Dynamic Filter

    Hi,

    I am new to VBA and have recorded a macro.

    I am applying a filter to a data set and want the range selection to by dynamic for the filter (it adapts to the changing data). My the code right now I have in VBA is a follows, which is from my understanding just selecting cells up to 31706.

    What should I change in the code so that it selects the data dynamically?

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Dynamic Filter

    Add at the beginning of your code the following
    Please Login or Register  to view this content.
    Change your range to
    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Dynamic Filter between two pivot tables
    By HYChau in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 02-03-2017, 10:27 AM
  2. VBA Dynamic Filter
    By alex-hh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2016, 10:34 AM
  3. VBA Dynamic Filter from different Workbook
    By alex-hh in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-22-2016, 08:23 AM
  4. Dynamic filter by numbers
    By martin.lasses in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-22-2016, 06:05 PM
  5. Sort and Filter 2D Dynamic Array
    By willia97 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2014, 07:34 AM
  6. [SOLVED] Dynamic filter criteria
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2014, 08:07 AM
  7. [SOLVED] Dynamic filter criteria
    By momosmile in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2012, 04:08 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