+ Reply to Thread
Results 1 to 5 of 5

Problem with searching and copy a lot of data

  1. #1
    Registered User
    Join Date
    05-30-2015
    Location
    Gdynia, Poland
    MS-Off Ver
    2010
    Posts
    14

    Problem with searching and copy a lot of data

    Hello guys

    I have some problem with looking/copy some Data. In sheet "M", there are Columns D:H where you can put some PRW number, now I have Sheet "D" where I can look for some Material index.

    And I need to make makro for search data for all Row's in Sheet("M") - D2:H26, but I don't know how many rows there will be in the future, could be 100 could be 200. And there can be data in all columns D:H but can be in one or two

    Next step is to move all numbers to Sheet ("Data"), but I need to copy them in some specific way, first Range("J1"), then data below it and then K1 Below next Data below K1 etc With all Columns J:AH

    Any idea how to make it easier for all rows ?! Coz all I manage to figure out was making it manually but its a lot of work, and I don't know how many Data in Sheet "M" will be in the future, can be 100 row but can be 200...

    Please open attachment and check on 3 macros which I did and you will understand what I want^^

    Thanks for you time and help
    Attached Files Attached Files
    Last edited by Tapion342; 03-05-2016 at 03:27 PM.
    ---------------
    Best Regards
    Tapion

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,644

    Re: Problem with searching and copy a lot of data

    Unfortunately trying to download attachment I receive message : "Invalid Attachment specified."
    Try to add it again. In Advanced you can use Manage attachments below main text window.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    05-30-2015
    Location
    Gdynia, Poland
    MS-Off Ver
    2010
    Posts
    14

    Re: Problem with searching and copy a lot of data

    Ok I did Re Attache please check on it now

    PS. Hehe rodaka wszedzie sie spotka :D
    Last edited by Tapion342; 03-05-2016 at 03:31 PM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,644

    Re: Problem with searching and copy a lot of data

    My proposition is to do it in one step. :

    Please Login or Register  to view this content.
    If it is not time critical task, the above shall be enough (your 25rows of input data and 1000 rows reference) -> less than 1/2 second processing.

    Personally I'd change sequence of For Each cell In Drange and For j = 4 To colM (to have first listed all numbers for PRW_1, then all for PRW_2...) but then sequence of numbers in column B is different than produced by your sample macro.

  5. #5
    Registered User
    Join Date
    05-30-2015
    Location
    Gdynia, Poland
    MS-Off Ver
    2010
    Posts
    14

    Re: Problem with searching and copy a lot of data

    Thanks a lot Kaper it's working perfect

+ 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 validation searching problem
    By mubeenff in forum Excel General
    Replies: 3
    Last Post: 10-16-2012, 02:21 AM
  2. VBA Problem When Searching Sheet
    By LSM1604 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-18-2010, 01:23 PM
  3. Searching Problem
    By graeme86 in forum ExcelTip.com Feedback / Comments / Suggestions
    Replies: 2
    Last Post: 12-30-2009, 01:04 AM
  4. Problem with searching funtion
    By Wiecman in forum Excel General
    Replies: 2
    Last Post: 08-28-2009, 04:59 AM
  5. Vba Searching Problem
    By chibiks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2007, 07:00 AM
  6. searching characters problem
    By Deci in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-28-2007, 05:44 PM
  7. Copy data thru searching all drives in PC
    By new_to_vba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2006, 12:20 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