+ Reply to Thread
Results 1 to 7 of 7

find data - copy to new workbook

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    find data - copy to new workbook

    hi,

    im trying to:
    1. find all data in column A with more than 10 characters in length,bold format and format color blue (-124910)

    2.1 if found in step 1 copy the data in column A
    2.2 copy also the data/amount in column D (same row)
    2.3 copy also the data/amount in column B but 3 rows down (based on data in column A)

    3.1 create new workbook then paste all data found
    3.2 paste starting in A2 of new workbook value of steps 2.1
    3.3 paste starting in B2 of new workbook value of steps 2.2
    3.4 paste starting in C2 of new workbook value of steps 2.3

    i think i can do the above steps but my problem is how do i store all the data found before i paste it in a new workbook?

    found the code below in stackoverflow

    Please Login or Register  to view this content.

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: find data - copy to new workbook

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: find data - copy to new workbook

    hi,

    thanks for the reply

    the sheet that it adds before "Sheet1" is empty
    so when its copied the copy is also empty


    ive attached the file
    Attached Files Attached Files
    Last edited by k1dr0ck; 03-14-2017 at 11:13 PM.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: find data - copy to new workbook

    dangelor 's code works perfectly fine if you

    1. Check your Font color
    2. Change the offset to 4 rows instead of 3.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: find data - copy to new workbook

    yup my bad the offset row is 4

    i got the blue font color value of "-124910" thru a recorded macro and looked at the code in the module i assumed it was correct

    after the suggestion from @bakerman2

    i then used a code to show the value of blue font color in column A so i would know if it is really is "-124910"
    the value shown was "16652306"

    got it working now thanks guys!

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: find data - copy to new workbook

    Good for you.

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: find data - copy to new workbook

    Glad to help!

+ 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. Replies: 2
    Last Post: 10-21-2015, 12:28 PM
  2. [SOLVED] Userform to find specfic data with certain criterias and then copy to another workbook
    By guyinahatgames in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2014, 09:32 AM
  3. [SOLVED] Macro to find data in source workbook and copy paste to target workbook
    By D.Lovell in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2014, 06:21 AM
  4. Macro to find a .csv file and copy all data to master workbook
    By Adamjb64 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-19-2013, 12:48 AM
  5. [SOLVED] Stock market data find symbol from csv data file, copy and paste to Master workbook
    By wkurukul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2012, 10:14 AM
  6. find and copy a sleceted range of data to another workbook.
    By riyan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-23-2011, 12:30 PM
  7. Loop workbook find and copy data columns
    By Zaeguzah in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-22-2010, 06:10 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