+ Reply to Thread
Results 1 to 2 of 2

Macro to repeat same process on successive rows and record answers on successive rows

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    York, UK
    MS-Off Ver
    2007
    Posts
    27

    Macro to repeat same process on successive rows and record answers on successive rows

    Hello all.

    I want to take data from a list and place it into another part of the spreadsheet to be used in a calculation, then to record the answer in another part of the sheet.

    Then repeat the process for the next row of data and to record that answer on the next row of the recorded answers.

    I've uploaded a simple version of what I need.

    Data to be taken from row 2 of columns K & L, and put it into row 2 of columns A & B, and record the answer in row 2 of column C and record that answer in row 2 of column F.

    Then repeat this for each successive row of data in columns K & L.

    Thanks for your help.


    ===================================

    Here's the code I have so far....

    Sub Macro1()
    '
    ' Macro1 Macro
    '
    ' Keyboard Shortcut: Ctrl+q
    '
    Range("K2").Select
    Selection.Copy
    Range("A2").Select
    ActiveSheet.Paste
    Range("L2").Select
    Application.CutCopyMode = False
    Selection.Copy
    Columns("B:B").Select
    Range("B2").Activate
    Range("B2").Select
    ActiveSheet.Paste
    Range("C2").Select
    Application.CutCopyMode = False
    Selection.Copy
    Range("F2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    End Sub
    Attached Files Attached Files

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,503

    Re: Macro to repeat same process on successive rows and record answers on successive rows

    Hi QPRMinty

    In future please view the forum rules before posting. Your post does not comply with rule #3.
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window.
    Here's one way

    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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] Increase value in quotation marks in successive rows
    By alexuk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2017, 12:52 PM
  2. Log User Input In Successive Rows
    By Vergewaltiger in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-06-2014, 03:21 PM
  3. [SOLVED] Select Successive Rows
    By Floydlevedale in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-09-2012, 03:48 AM
  4. Copy & paste formula results in successive rows
    By smams in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-20-2012, 02:13 PM
  5. Macro to add data to successive rows of a table
    By gigiw1986 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 04-25-2010, 05:20 PM
  6. Combining Totals on Successive Rows Based on Two Criterion
    By razorsharpe in forum Excel General
    Replies: 1
    Last Post: 08-18-2006, 10:30 AM
  7. Transposing a Column into Successive Rows of a Specified Length
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-28-2005, 11:34 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