Results 1 to 4 of 4

PasteSpecial into next availble row

Threaded View

  1. #1
    Registered User
    Join Date
    07-22-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    57

    PasteSpecial into next availble row

    Hi all,

    Sorry if this has been asked before however ive written the following VBA code that copies a line of data and pastes it into another tab on the next available row. Im struggling to get it to paste values. Could you please help?

    Sub COPYANDSAVE()
    '
    ' COPYANDSAVE Macro
    '
        Sheets("Line Data").Rows("3:3").Copy Sheets("Log").Range("A1048576").End(xlUp).Offset(1, 0)
        Sheets("DPC Scoring").Select
        Range("D2:E2").Select
        Application.CutCopyMode = False
        ActiveWorkbook.Save
    End Sub
    I was hoping the following might work but I get a Compile error: Sub or Funtion not defined

    Sub COPYANDSAVE()
    '
    ' COPYANDSAVE Macro
    '
        Sheets("Line Data").Rows("3:3").Copy Sheets("Log").Range("A1048576").End(xlUp).Offset(1, 0)
    PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
            :=False, Transpose:=False
        Sheets("DPC Scoring").Select
        Range("D2:E2").Select
        Application.CutCopyMode = False
        ActiveWorkbook.Save
    End Sub
    Last edited by nathanexcelhelp; 12-13-2018 at 02:22 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. An easy way to see which worker is availble
    By gartye in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 09-24-2016, 04:51 AM
  2. [SOLVED] Paste values based on a condition to next availble row in different sheet
    By Jenkins87 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2016, 04:00 PM
  3. [SOLVED] Total Items Availble
    By thyzt in forum Excel General
    Replies: 8
    Last Post: 05-09-2016, 07:17 PM
  4. VBA to paste data in next availble blank row within a range.
    By Zimmerman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2016, 05:34 PM
  5. pastespecial
    By Halid in forum Excel General
    Replies: 2
    Last Post: 04-15-2014, 02:06 AM
  6. Enter text value into next availble cell in range if user selects correct answer
    By jerbaldw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 10:24 AM
  7. [SOLVED] Object not availble onthis machine.
    By Kjeldc in forum Excel General
    Replies: 0
    Last Post: 08-08-2005, 02:07 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