+ Reply to Thread
Results 1 to 6 of 6

Need help with Macro sending data to new sheet

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    East Texas
    MS-Off Ver
    2010 & 2013
    Posts
    17

    Need help with Macro sending data to new sheet

    I have this macro that finds data searching rows. I have to hit next for it to find the next set if same data I would like the ability for it to paste all the data it finds on the next sheet

    Currently I have to stop the search to copy and paste data and then start all over again. Plus it is VERY time consuming I've tried other forums and have lots of views but no help so hopefully someone here can figure out what I need Thank you

    Instructions:

    When you open the file you will see under column C the numbers 2 10 2 in rows C:2 C:3 C:4. I am looking for all the number sequences down column C that have the 2 10 2 in them

    Click on the button labeled "Find Patterns"
    That brings up a box that says select range(s) you will high lite C:2 to E:2 and drag down to C:4 E:r and then press "ok"

    This will begin the search. When it finds the answers it will show you a location that the next set of numbers ( 2 10 2) are in $C$17:$E$19
    click on "ok" this brings you to that location. This will be one location of many. There are well over 100,000 rows I will be searching

    Now, for what I want I need help with. I want to be able for the Macro to copy and paste all the locations it finds and place them on the next sheet with 10 rows above and 10 rows below (info from B:J)

    If this can not be done easily then I would like the ability to pause the search and copy the location to another sheet manually and then start where it left off. Presently every-time I go to copy and paste, I have to stop it and start all over again. Ideal would be to copy and paste to the next sheet which will save an enormous amount of time


    http://www.mediafire.com/download/u5...er_Search.xlsm
    Last edited by Vortex69; 12-25-2014 at 01:18 AM. Reason: add file

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Need help with Macro sending data to new sheet

    Hi, Vortex69,

    you should attach the workboiok here on EF instead of another provider where it may get removed after some tiome.

    Try looking up FindNext for your purpose in the VBA Help or here on EF to continue the search.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    12-24-2014
    Location
    East Texas
    MS-Off Ver
    2010 & 2013
    Posts
    17

    Re: Need help with Macro sending data to new sheet

    Thank you for the response. How would find next do this automatically and place the data on the next sheet?

    I have to shorten my file to upload it

  4. #4
    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,872

    Re: Need help with Macro sending data to new sheet

    Attach a sample workbook.
    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    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

  5. #5
    Registered User
    Join Date
    12-24-2014
    Location
    East Texas
    MS-Off Ver
    2010 & 2013
    Posts
    17

    Re: Need help with Macro sending data to new sheet

    I can not make the file small enough to upload and it still make sense or at least I do not think I can, so what I will do is upload a pic and the Macro and then a spreadsheet with a lot of data missing

    I can not get it under 1.56MB
    Last edited by Vortex69; 12-25-2014 at 01:35 AM.

  6. #6
    Registered User
    Join Date
    12-24-2014
    Location
    East Texas
    MS-Off Ver
    2010 & 2013
    Posts
    17

    Re: Need help with Macro sending data to new sheet

    Here is the code


    Please Login or Register  to view this content.


    Number Search.jpg
    Last edited by Vortex69; 12-25-2014 at 01:30 AM.

+ 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. Data sending from one sheet to another
    By karthikgmk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2014, 06:53 AM
  2. Macro codes for sending the one sheet attached through outlook
    By Ram Behera in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-27-2013, 10:42 AM
  3. [SOLVED] Sending data from one sheet to another
    By brownie4321 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2012, 08:26 AM
  4. sending data from one sheet to another
    By lpratt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2010, 07:52 AM
  5. Sending Data to a second sheet
    By quasifun in forum Excel General
    Replies: 2
    Last Post: 02-28-2008, 12:47 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