+ Reply to Thread
Results 1 to 9 of 9

Macro to make copying cells automate,- an appeal for expert's advice!

  1. #1
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Macro to make copying cells automate,- an appeal for expert's advice!

    Hi!

    I've got a problem with copying cells from table A to B.

    A short insight of the situation:

    Table A shows: ITEM_1 = 3, consequently ITEM_1 from table A is copied to table B for 3 times.

    I've got a few huge information blocks to handle (up to 5000 items) obviously it's unreasonable to do this manually.

    Would you be so kind as to give the matter a reasonable consideration?

    I've added an xlsx file with more detailed description.

    Thanks in advance

    Lebedev A.
    Attached Files Attached Files
    Last edited by Arty_1; 05-03-2014 at 05:09 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Hi,

    Looking into this...
    Regards,
    Rudi

  3. #3
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Hi,

    Here is a macro to do the task...
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Thanks RudiS!

    Unfortunately after enabling macro, I realised nothing has changed.

    Could you please send a code of the macro?

    Regards

    Lebedev A

  5. #5
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Hi,

    Here is the code...

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Thank you very much, Rudi!

    It's working great!

    One more additional question:

    I'm going to expand the table of items (up to 5000),

    How to edit the code so that the macro will be considering the new added items from the expanded table?

    Regards

    Lebedev A

  7. #7
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    Hi,

    You don't need to edit the macro as it works on the length you make the tables in the sheet. Just extend the codes in columns Q and R to an arbitrary row...
    If you have 5000 records in the first table, extend the Q and R column codes down to row 6000 (or even 7000) using autofill. Please note that the macro will only fill to the end of this range, so make sure it is extended far enough. If it is not, the macro stops if it hits the last row in table two.

  8. #8
    Forum Contributor
    Join Date
    05-01-2014
    Location
    RIX
    MS-Off Ver
    Excel 2003; 2007
    Posts
    114

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    You've done me a great favor, thanks a lot! It's working perfect!

    I think we can draw a main conclusion from the poblem that has just been solved:

    You are the one who has the expertise in the field!

    I'm very much grateful to you, Rudi!

    Best Regards

    Lebedev A.

  9. #9
    Valued Forum Contributor
    Join Date
    07-04-2012
    Location
    Cape Town, RSA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    1,050

    Re: Macro to make copying cells automate,- an appeal for expert's advice!

    I'm glad to hear it is working well.

+ 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. [SOLVED] Need to automate the copying of range of cells into same row 365 times
    By Hirad001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2014, 01:36 PM
  2. [SOLVED] Need advice on how to automate copying one cell into many cells in Excel 2010
    By shelbyjayIII in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-10-2013, 05:48 PM
  3. Replies: 5
    Last Post: 12-09-2012, 04:27 PM
  4. Automate searching and copying information from a file to another
    By d1rt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-28-2012, 02:33 PM
  5. How can I automate copying blank worksheet?
    By unsworthcl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2005, 12:52 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