+ Reply to Thread
Results 1 to 12 of 12

Selecting visible cells in a filtered table column

  1. #1
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Selecting visible cells in a filtered table column

    Hi, I am trying to set a macro to select visible cells in certain columns of a table after I filter the table.
    The table header is in row 10 (the columns are E, I & O). Sheet Name: MedComp Sheet Number: Sheet30 Table Name: TBL_MedComp
    How can I select then copy only the visible cells in these columns after the table data has been filtered and displays only the data entries I am concerned with?
    Any help would be appreciated.

    I can deidentify and simplify my workbook but it will take a lot of time so I tried to provide details above that do not need an example workbook to run off. I am sure this is adaptable for any sheet and table.

    Thank you.

  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,262

    Re: Selecting visible cells in a filtered table column

    I'm not quite sure why you need a macro for this. If you select the table with rows filtered out, then copy and paste, you will get only the filtered rows.
    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
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Selecting visible cells in a filtered table column

    Not that I feel I need to justify why I have posted a question, but if you must know...I have several columns (3 in this case as written in the original post) I need to run this on each time, and I do it frequently with different data. I know how to add the ability to cut and paste to a macro and all I need help with is selecting filtered data. Hence asking for help on one specific task and using a larger macro to speed up the entire process and avoid manually doing it every time.

  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,262

    Re: Selecting visible cells in a filtered table column

    Ah, OK - your title is misleading, then. What you are asking about is setting the filters via a macro, NOT selecting the visible cells.

    You do not have to be defensive: if someone comments on your thread, it is with a view to help. Nobody is asking you to justify why you have posted a thread, but sometimes we need to seek clarification.

    EDIT: I see you have reported my post. You said:

    I have been questioned why I needed to post a particular question. I do not feel anyone needs to justify why they are posting on the forum especially when they ask a simple specific question they wish to adapt to a greater problem. Not everyone is simple-minded requiring help for every single aspect of problems, some of us identify our weaknesses, highlight the most pertinent information to avoid confusing potential helpers, and omit unnecessary explanations irrelevant to the specific problem.
    I did not ask why you posted the question. I asked why you wanted a macro to select and copy-paste visible cells (as per your title). It now seems that is not really what you want help with.

    I do not understand why you consider this as an implication that I think you are simple-minded: I do not, nor did I think anything of the sort.
    Last edited by AliGW; 08-23-2021 at 03:03 AM.

  5. #5
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Selecting visible cells in a filtered table column

    My title is not misleading thank you. Selecting visible cells in a filtered table column suggests setting filters via a macro which is precisely what I asked in my post. I provided information about where my headers were, not that they needed filtering. I clearly stated I had already filtered the data. Please take the time to read carefully before making incorrect replies.
    You do not need to be so rude. You were not trying to help at all. I have the right to be defensive when treated like this. Kindly refrain from commenting on any of my posts in future.

  6. #6
    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,262

    Re: Selecting visible cells in a filtered table column

    As you wish ...

  7. #7
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Selecting visible cells in a filtered table column

    I see you have removed my ability to report your posts. Very interesting isn't it that you have missed my point and now edit your posts to further harass me yet take away my right to stand up for myself.
    Why have you failed to read my post as it is clearly asking precisely what is in the heading?
    You need to stop harassing me now.

  8. #8
    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,262

    Re: Selecting visible cells in a filtered table column

    I cannot remove anyone's ability to report posts. You have so far reported me twice (EDIT: three times now).

    I will leave it up to other mods and admins to decide what to do about it, or indeed whether there is anything I need to answer to. For the record: I am not harassing you.

    Good luck with your query.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Selecting visible cells in a filtered table column

    Quote Originally Posted by Crawfy View Post
    Not that I feel I need to justify why I have posted a question, but if you must know...I have several columns (3 in this case as written in the original post) I need to run this on each time, and I do it frequently with different data. I know how to add the ability to cut and paste to a macro and all I need help with is selecting filtered data. Hence asking for help on one specific task and using a larger macro to speed up the entire process and avoid manually doing it every time.
    It's not justifying why you posted a question, its giving more detail to your question. Often, members think that need 1 thing (eg complex multiple IF's) when they actually need something different (eg a simple vlookup). Lack of knowledge on some excel formulas sometimes results in the OP not really knowing what is available to the. Asking questions gives answerers a better insight into what is really needed.

    (and by the way, getting snippy with members is a sure fire way to stop getting answers at all...word quicky spreads in a comunity like this about who is or is not worth the effort of helping...just saying)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Selecting visible cells in a filtered table column

    Quote Originally Posted by Crawfy View Post
    My title is not misleading thank you. Selecting visible cells in a filtered table column suggests setting filters via a macro which is precisely what I asked in my post.....
    1. Sorry, but there is nothing in your title that "suggests" you anything via a macro. We are not mind readers, and most of us do not have crystal balls to see what you want.

    2. I see nothing rude about Ali's posts, I DO see someone who is trying to help by get more details on what you want, so that a better suggestion can be made.

    3. Even I (as Admin) cannot remove your ability to report threads, however, I believe there may be a (programmed) limit to how many times you can report a thread.

    4. I have viewed Ali's original version of post, compared to what now shows in post # 4 - the only thing different is the addition of the last 2 limes of text. Nothing else was removed or changed. No other posts were edited.

    5. I see no harassment here, only a possible misunderstanding as to why additional information was requested.

    I hope this clears this matter up now, if not, please feel free to PM me for further discussion. Open forum is not the place for this kind of discussion.

  11. #11
    Forum Contributor
    Join Date
    05-28-2016
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    119

    Re: Selecting visible cells in a filtered table column

    I received the below solution within minutes in another forum where a certain moderator has been banned. A quick search resolves multiple harassing comments by this person towards many people in many forums.
    There was nothing misleading in my heading or text. I posted the request in the VBA/Macro posts which obviously indicates I am after a macro. And it says so in my text.
    I agree an open forum is not the place for AliGW to harass people, as she has done so on multiple platforms before. And yes, word does spread.

    Please Login or Register  to view this content.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Selecting visible cells in a filtered table column

    Crawfy, I told you to post any further discussion regarding this in PM to me. Further disregard to my instruction will lead to your privileges here being either temporarily or permanently revoked.

+ 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. automatically selecting only specific visible cells in a filtered range
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 03:19 PM
  2. [SOLVED] Selecting the first x visible rows of a filtered table
    By DreamEyes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2017, 11:05 AM
  3. [SOLVED] Filtered Cells To Automatically Move Visible Cells To Top Of Table..?
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-24-2017, 05:55 AM
  4. Highlight Visible Cells from filtered column in a table
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2016, 10:52 PM
  5. [SOLVED] count auto filtered visible cells in column VBA...
    By gr8spot in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-28-2015, 09:55 AM
  6. [SOLVED] Only selecting visible cells in a table with hidden rows
    By pfeifferjoey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2014, 09:22 AM
  7. Selecting 2nd to last Visible row in a filtered list
    By PSBuskey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2013, 04:43 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