+ Reply to Thread
Results 1 to 19 of 19

how to transfer row to another workbook base on a cell value in colunm a

  1. #1
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    how to transfer row to another workbook base on a cell value in colunm a

    hi to all you excel gods

    heres example of what im trying to if column A in workbook part 1 has value 80 i would like it to copy row and put it in part2 workbook sheet name 80 and add it to part2 workbook every time 80 is enter in column a workbook part 1 also if the value 90 is add to column a i would like it to add this to part2 workbook sheet name 90


    thanks in advance

    shane

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: how to transfer row to another workbook base on a cell value in colunm a

    can it be done with a macro?
    does the row needs to be deleted or just flagged posted

  3. #3
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    hi rcm

    yeah macro would be fine but would rather if it could be done on after save event (if possible) no i would not want it to delete the row just copy it
    sorry i would post example but this website acting abit funny at the moment not displaying everything to me


    thanks for the quick reply

    shane

  4. #4
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    i have add some sample workbooks to explain a bit better what i'm trying to do would much appreciate any help
    i have try some codes and google the hell out of it still no joy

    part2 example.xlsx
    part1 example.xlsx

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Something like:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    hi yudlugar

    thanks for your help im getting error with the code i will highlight in red where. also do i place this code on workbook part2 or part1
    at the moment i run it in workbook part 2 cheers you legend !!!!
    Please Login or Register  to view this content.
    shane

  7. #7
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Sorry forgot to add a sheet reference
    elseif wb1.Sheets("1").Range("A" & count)

    doesn't matter if the code is in 1 or 2.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Another:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    thank you both your code perfectly legends !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  10. #10
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    hi all
    i have now tried to playing about with code would like it to check column b in part1 workbook copy row to part2 workbook and paste the row starting in column a but it seems to only copy the last of the code which is 10.10 and does copy over the rest present over here the code
    any help would much appreciated im sure there something im forgetting

    Please Login or Register  to view this content.

    cheers

    shane

  11. #11
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    hi cheers i seem to be getting array error can't assign array compile error
    Please Login or Register  to view this content.
    Is it possible to check sheet 1 to 31 not just sheet 8


    thanks for your help you legends out !!!!!


    shane

  13. #13
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: how to transfer row to another workbook base on a cell value in colunm a

    could you send a sample so I can test it?
    this should work in theory...

    Please Login or Register  to view this content.

  14. #14
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Yeah the dim choice(10) thing is the issue, if you dim the array that way you need to assign with a loop. taking out the (10) will make it work.

  15. #15
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to transfer row to another workbook base on a cell value in colunm a

    I don't know if this coding would work?

    Please Login or Register  to view this content.
    I think it should be:

    Please Login or Register  to view this content.

  16. #16
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    hi thanks lads

    still having problems with the code "object does not support this property" have attacth some test files. what i would like it to do check column b in workbook example 3 check for values 10.1,10.2,10.3etc.. to 10.10 and check sheets 1 to 31 then copy rows to workbook4 example but paste the rows in column A workbook4 example sorry for the poor description
    part3 example.xlsxpart4 example.xlsm

    thanks alot for your help

    shane

  17. #17
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Maybe:

    Please Login or Register  to view this content.
    BTW your example only had one sheet which has data too copy in example 3, sheet1.

  18. #18
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Thanks ,John

    work perfectly just one more thing sorry to be a pain but it checks for values 10.1 to 10.10 but i would like it to check for 10G aswell if possible
    you total legend

    shane

  19. #19
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: how to transfer row to another workbook base on a cell value in colunm a

    Maybe:

    Please Login or Register  to view this content.

+ 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. Live Transfer a range of cell values to another Sheet or to another Workbook
    By phstol in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-10-2009, 12:00 PM
  2. Sum 90% of values in a colunm
    By wlln001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-13-2009, 12:25 PM
  3. Possible sum in colunm of numbers
    By Pedroluna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-13-2009, 02:44 PM
  4. Replies: 3
    Last Post: 07-07-2006, 04:10 PM
  5. Replies: 1
    Last Post: 10-31-2005, 03:05 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