+ Reply to Thread
Results 1 to 4 of 4

1 to copy only filtered records and 2 to paste into range ending by last row in next col

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    1 to copy only filtered records and 2 to paste into range ending by last row in next col

    Hello All,

    Happy New Year to everyone!

    I would love to learn how to copy filtered entries only from one Tab to another using a Macro. When I record the Macro it records specific cells but I need it to work in a flexible manner as each time it will be different cells/rows to be copied.

    I have attached a sample where I want the macro to filter column F on Sheet1 Tab by hiding "0" value from displaying and then copy the resulted rows in within columns B:K to Sheet2 Tab.

    I have also got one more question regarding making a macro copy a formula in Sheet3 Tab that is in A2 and paste that formula in the Range - A3:A-last entry in column B. Is this possible to determine the flexible stop?

    I appreciate your help. I hope there is someone who is able to give it a go and point me in the right direction. I don't know the coding and I am only learning it by recording macro and studying the text to see which part is responsible for what action. Therefore my knowledge is quite limited in the subject.

    Thank you all in advance for looking into and giving it a go.

    Simon
    Attached Files Attached Files
    ...and this is when I walk in, dressed fully in white...

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: 1 to copy only filtered records and 2 to paste into range ending by last row in next c

    Try the attached.
    Attached Files Attached Files
    Last edited by AB33; 01-13-2017 at 03:30 PM.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: 1 to copy only filtered records and 2 to paste into range ending by last row in next c

    Check it out,

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Re: 1 to copy only filtered records and 2 to paste into range ending by last row in next c

    Hello Both,

    Thank you very much for your help.

    I have tried both and davesexcel worked perfectly for me. I have had to tweak it a little and add a couple of things to make it work in my main file but this was it! Thank you very much for this!

    @ AB33 - I think I have confused you a little with my idea and when I tried the macros from yours they were a little different to bring up what I wanted. Although I understood what they do and find them helpful as well. Thank you for giving it a go.

+ 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. Copy filtered Range, Remove Filter, Find 1st Empty Cell from the bottom, Paste VBA
    By intervals in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2016, 10:48 PM
  2. Copy paste filtered range with criteria using VBA
    By Jayant shettigar in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-12-2014, 10:26 AM
  3. copy paste macros
    By rrk2008 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 06:42 AM
  4. [SOLVED] Copy/Paste from a Filtered Range and Insert copied data NOT overwrite
    By Simon.Ward in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-12-2013, 11:14 AM
  5. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  6. Ending copy paste mode.
    By S.U.S.S. in forum Excel General
    Replies: 3
    Last Post: 05-28-2009, 05:40 AM
  7. Replies: 1
    Last Post: 04-08-2009, 02:37 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