+ Reply to Thread
Results 1 to 4 of 4

Loop through range, copy and paste

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    67

    Loop through range, copy and paste

    Hello,

    I can't seem to find an answer to this and I'm having a little trouble figuring this out.

    I have a column of cells with six-digit values. I need to copy one into another sheet, call another Sub, and then move on to the next one. For instance, if I had in column "A" of "Sheet1":

    519818
    565445
    651658
    789876
    665449

    519818 would be copied into Sheets("FORM").Range("H26") and then I'd Call Module1.CalculateAndSave
    Then, 565445 would be copied into Sheets("FORM").Range("H26") and so on and so forth until there are no more values in column A.

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Loop through range, copy and paste

    Perhaps the following is all you'll need:
    Please Login or Register  to view this content.
    Click the * to give Rep to a post you like.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Loop through range, copy and paste

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

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

    Re: Loop through range, copy and paste

    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. Loop through files in folder, copy range, Paste range to original workbook
    By knevil in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-09-2016, 05:33 PM
  2. Increase copy and paste range after each loop
    By JakeSn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 04:34 AM
  3. Setting a range within a loop variable for copy/paste
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-21-2005, 12:10 PM
  4. [SOLVED] Setting a range within a loop variable for copy/paste
    By Craig in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-20-2005, 06:25 PM
  5. [SOLVED] Loop: Copy and paste range that changes with every iteration
    By Allen Geddes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-15-2005, 09: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