+ Reply to Thread
Results 1 to 4 of 4

Copy & Paste Values in a Loop

  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Copy & Paste Values in a Loop

    In the range A58:X93 is Trade #1, in the range Z58:AW93 is Trade #2. My worksheet will have many more Trades added over time. In the first column of each Trade in row 60 is the day count. Starting with the first Trade, if this day count is equal to 1 then I need a macro that can copy E59:E88 and paste that range as values to G59:G88. I need the macro to be able to loop through every trade and perform this action on the appropriate ranges for each trade. Can anyone help me with this? Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,681

    Re: Copy & Paste Values in a Loop

    Your application requires updates from an external link/application and I do not recognise it so I'm not enabling it. Consequently, I can't really test your workbook.

    That said, I can't help thinking that the way your workbook is structured will cause you difficulty in the future and is not scaleable.

    I would recommend that you have all data from all trades in one set of columns and have your analysis on separate sheets or generate Pivot Tables.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy & Paste Values in a Loop

    I apologize. Here is a copy of the workbook without the external links
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Re: Copy & Paste Values in a Loop

    Can anyone help me with this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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