+ Reply to Thread
Results 1 to 3 of 3

copy and paste to next available row above or below existing data

  1. #1
    Registered User
    Join Date
    03-28-2014
    Location
    Utah
    MS-Off Ver
    Excel 2003
    Posts
    2

    copy and paste to next available row above or below existing data

    this is the code i have so far:

    Application.ScreenUpdating = False
    Dim copySheet As Worksheet
    Dim pasteSheet As Worksheet
    Set copySheet = Worksheets("BDO Pipeline")
    Set pasteSheet = Worksheets("UW Pipeline")
    copySheet.Range("E3:H3").Copy
    pasteSheet.Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).PasteSpecial xlPasteValues
    Application.CutCopyMode = False
    Application.ScreenUpdating = True
    Sheets("UW Pipeline").Select

    So, for example what i want to have happen is if row 1,2,3, and 5 all have data. i want it to post to row 4 rather than row 6. Thanks in advance

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: copy and paste to next available row above or below existing data

    hi,
    try this
    Please Login or Register  to view this content.
    ...and yes, please use code tags around code next time!
    Last edited by john55; 03-29-2014 at 01:36 AM.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    03-28-2014
    Location
    Utah
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: copy and paste to next available row above or below existing data

    my apologies will do. thanks for the help

+ 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: 11
    Last Post: 11-04-2013, 04:32 PM
  2. Replies: 3
    Last Post: 10-14-2013, 03:06 PM
  3. VBA to copy, paste and add to existing data
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2013, 05:58 PM
  4. Web Query dynamic destination or VBA to copy and paste new data alongside existing data
    By Marbleking in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2012, 06:03 PM
  5. Code to copy, paste without replacing the existing data
    By share knowledge in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-04-2011, 05:50 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