+ Reply to Thread
Results 1 to 3 of 3

Automatically copy a row to another sheet.

  1. #1
    Registered User
    Join Date
    04-22-2019
    Location
    Qatar
    MS-Off Ver
    2010
    Posts
    1

    Automatically copy a row to another sheet.

    Hi,

    I hope that you are all well!

    I would like some help with a formula to automatically copy a row from one sheet to another if a specific number is entered into a cell in that row.
    So based on the attached excel sheet, if the number 10 is entered into column A then the row in which it is entered, in this case row A4 to L4 will be copied to sheet 2. If the number 4 is entered into column A then the row in which it is entered, in this case row A6 to L6 will be copied into sheet 3.

    Hope this makes sense.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Automatically copy a row to another sheet.

    Hi and welcome to the forum

    A few clarification questions:
    1) You mention formulas to copy data from one sheet to another but you've posted in the VBA section. Are you looking for formulas or a macro?
    2) (If a macro solution required) You say "IF a specific number is entered" rather than "WHEN a specific number is entered". Does this mean you want the data to move when you click a button rather than when you actually enter the number in A?
    3) In your actual workbook is there a way of deciding which sheet data gets copied to? i.e. 10 goes to Sheet2 and 4 goes to Sheet3 is fine for your example but are there more sheets in your workbook that need taking into account? It will make a difference to the approach taken.

    BSB

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Automatically copy a row to another sheet.

    Hi, welcome to the forum.
    If your question really is about using a formula then the answer is that this is not possible to do with formula.
    You will require a macro to do this. To achieve this you could start by recording a macro and and then enter the value as you state it and carry out the actions step by step.
    When the first step is completed, stop the macro recording and then you can check the recorded macro to see what it did.
    This macro can then be edited to suit your needs and can be applied to all events for that worksheet.
    Recording a macro is the first step every starting VBA user has taken to learn how to work with macros.
    There are many tutorials and explanations on-line one link I foudn fro you https://www.excel-easy.com/vba/examp...-recorder.html but there are many more.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

+ 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. VBA/Macro to Automatically Update, Copy, & Sort information from Sheet 1 to Sheet 2
    By E9demello in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2017, 09:37 AM
  2. Replies: 19
    Last Post: 10-16-2017, 12:34 PM
  3. [SOLVED] automatically copy data from different sheets and sequentially copy to another sheet
    By darbar76528 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-13-2017, 02:12 PM
  4. Automatically copy rows to another sheet based on criteria, when original sheet is updated
    By NoviceProgrammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2016, 02:14 AM
  5. Need help to create a macro to automatically copy in one sheet and copy in the other
    By Thammiraju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2014, 09:36 PM
  6. [SOLVED] How to Automatically Copy New Data into the next sheet and have it automatically sorted??
    By ReedDOT in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2013, 10:50 AM
  7. Replies: 5
    Last Post: 06-21-2012, 05:16 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