+ Reply to Thread
Results 1 to 2 of 2

VBA Code to copy data under filtered header into new sheet

  1. #1
    Registered User
    Join Date
    10-19-2021
    Location
    London
    MS-Off Ver
    16.54
    Posts
    1

    Cool VBA Code to copy data under filtered header into new sheet

    Hi,
    I would really like help on VBA for the below, i can't seem to find the code anywhere!
    It would be so greatly appreciated

    1. selecting all rows with data below header when filter has been set
    2. pasting a number of rows of data into a new sheet on next available empty line (below already filled rows of data)

    when i record i get this, however, the top line doesnt work when i change the core data - could i use something like this - xlCellTypeVisible?
    Rows("3:3").Select
    Range(Selection, Selection.End(xlDown)).Select
    Last edited by nicolabrown12345; 10-20-2021 at 04:09 AM.

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

    Re: Copy and Paste to last line on new sheet

    Administrative Note:

    Welcome to the forum.

    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. I have made the change for you today. Please review the forum rules you agreed to and abide by them in the future.)
    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. [SOLVED] Copy Row and paste next available line in another sheet
    By dave_w1967 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2021, 12:47 PM
  2. Replies: 4
    Last Post: 01-31-2018, 07:39 PM
  3. [SOLVED] On Double-Click, copy/paste to next blank line on different sheet
    By ahreluth in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2015, 06:16 AM
  4. [SOLVED] VBA - Macro issue copy/paste line other sheet + duplicate current sheet
    By vcourbiere in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 09-17-2014, 12:06 PM
  5. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  6. [SOLVED] VB code help- need copy cells in a row and paste to new sheet on next available blank line
    By Barbara Excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 11-27-2012, 03:11 PM
  7. Copy a Range from sheet and paste the next blank line in another s
    By ca1358 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-02-2005, 05:18 AM

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