+ Reply to Thread
Results 1 to 7 of 7

copy paste macro help

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    copy paste macro help

    Hi! The below code works fine. Wht I need is when the copy function happens, to skip row A since I don't need the headers:

    Please Login or Register  to view this content.
    Last edited by derek7467; 03-05-2014 at 11:41 AM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copy paste macro help

    Derek,
    Please use code tags with your code as per forum's rule.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: copy paste macro help

    sorry about that. Thanks for the help!

  4. #4
    Registered User
    Join Date
    03-12-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: copy paste macro help

    Weird, now its creating 2 blank rows after it, before it didnt. It does what i asked (appends just the data and not the headers).

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copy paste macro help

    I do not see what are in your data. Please attach your sample

  6. #6
    Registered User
    Join Date
    03-12-2012
    Location
    NJ
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    5

    Re: copy paste macro help

    Attached a copy of my xlsm
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: copy paste macro help

    Derek,
    Usedrange is not 100% reliable. It looks at the entire row for data. Despite some cells appear to be blank, they may not be empty, hence the code assumes that there are data to be copied.
    I have adjusted the code to use column range.
    Attached Files Attached Files

+ 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. Copy & paste in macro doesn't paste all cells
    By pltrapper in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2013, 09:22 AM
  2. [SOLVED] Simple copy and paste macro- Paste special help needed.
    By hernancrespo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 07:02 AM
  3. [SOLVED] Macro to Find, copy, paste, find, copy, paste, find, copy, paste, u get the picture....
    By westsoldman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2012, 01:12 AM
  4. 2 Macro's: only vertical copy/paste action and copy-paste 14 columns to the right.
    By vdongen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2010, 10:34 AM
  5. [SOLVED] Copy and Paste macro needs to paste to a changing cell reference
    By loulou in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2005, 07:06 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