+ Reply to Thread
Results 1 to 2 of 2

Copy/Paste Function not working properly in Loop

  1. #1
    Registered User
    Join Date
    11-17-2015
    Location
    Cincinnati, Ohio
    MS-Off Ver
    2007
    Posts
    1

    Copy/Paste Function not working properly in Loop

    The code below is being used to automatically transfer data from one workbook to another based on a job number and a sequence number matching. The problem that I am running into is that multiple jobs have the same sequence number and it is copying the same data into each job. For example:

    Worksheet #1 of Workbook #2
    Job #1, Seq. #1

    Worksheet #2 of Workbook #2
    Job #2, Seq. #1

    The information for Job #1, Seq. #1 is being transferred over to the destination workbook in both of the above cases.


    Please Login or Register  to view this content.
    Last edited by alansidman; 11-17-2015 at 01:33 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Copy/Paste Function not working properly in Loop

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Loop not working properly - code included - help?
    By lealea1982 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-24-2015, 12:34 PM
  2. Code NOT working properly - Copy/Paste Multiple Tables
    By Blackhawks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2014, 12:18 PM
  3. [SOLVED] VBA if loop not working properly
    By asparak in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-10-2014, 01:39 PM
  4. Copy/Paste Loop function?
    By Gwdp_66 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-18-2013, 07:45 PM
  5. Loop For not working properly
    By mabbutt in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2008, 08:59 AM
  6. Paste Special is not working properly.
    By BigBas in forum Excel General
    Replies: 7
    Last Post: 12-05-2007, 05:04 PM
  7. For Each Loop not working properly
    By oakman in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-26-2006, 06:44 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