+ Reply to Thread
Results 1 to 2 of 2

Copy/Paste New Records to New Row on Seperate Sheet

  1. #1
    Registered User
    Join Date
    11-18-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    7

    Copy/Paste New Records to New Row on Seperate Sheet

    This is probably super easy. But .. I recorded a macro to take information from a "Form" and insert it into another excel tab that will serve as a database for completed jobs. I realize that I should probably use access for this, but I have not even the slightest clue how to get started with that application.

    The Recorded Macro is below. It works fine. I just need it to paste the information to a new row each time the "Button" is pressed to add records on a new row instead of copying over the B row with data already inserted.


    Sub AddRecord()
    '
    ' AddRecord Macro
    '

    '
    Range("B6:D6").Select
    Selection.Copy
    Sheets("Record").Select
    Range("A2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("B8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("D2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("D8").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("E2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("B3").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("F2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("D3").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("G2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("B1").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("H2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("A12").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("I2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Range("J2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    Sheets("Form").Select
    Range("B10").Select
    Application.CutCopyMode = False
    Selection.Copy
    Sheets("Record").Select
    Range("L2").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
    :=False, Transpose:=False
    ActiveSheet.Paste
    Application.CutCopyMode = False
    Range("L3").Select
    Sheets("Form").Select
    End Sub

    Any help will be greatly appreciated!

    Thank you

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy/Paste New Records to New Row on Seperate Sheet

    Hi dundraburl,

    I shortened your code but you're pasting all over - see if this helps or hinders:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Replies: 2
    Last Post: 12-20-2013, 01:09 PM
  2. Macro to copy data and paste values into seperate sheet
    By FlashNZ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2013, 07:19 PM
  3. [SOLVED] Find certain column, copy it and paste into seperate sheet
    By emily_k8_lewis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-02-2013, 08:59 AM
  4. Filter only records containing 'x', copy, paste in new sheet, and then delete. Please help
    By jamieswift1977 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2013, 05:27 AM
  5. Replies: 2
    Last Post: 06-05-2012, 10:54 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