+ Reply to Thread
Results 1 to 6 of 6

Need to copy/paste qualifying range of cells instead of entire rows

  1. #1
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Need to copy/paste qualifying range of cells instead of entire rows

    Hi.

    I've struggled with this most of the day and I could really use some help. Is there a way to change the code below from pasting the entire row to only pasting the data in columns A:E?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: Need to copy/paste qualifying range of cells instead of entire rows

    Please Login or Register  to view this content.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Re: Need to copy/paste qualifying range of cells instead of entire rows

    Thanks, JLGWhiz.

    The only issue remaining is that data in column A is not being copied. The code needs to compare the letters in column B to the tab names, but when the copy/paste occurs it needs to include columns A through E data.
    Attachment 653552 shows the results of the original vs the modified code. I've also uploaded a copy of the workbook.


    Attachment 653552
    Attached Files Attached Files

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Need to copy/paste qualifying range of cells instead of entire rows

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  5. #5
    Forum Contributor
    Join Date
    04-29-2010
    Location
    Tallahassee, FL
    MS-Off Ver
    365
    Posts
    100

    Re: Need to copy/paste qualifying range of cells instead of entire rows

    Works perfectly. Thanks!

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: Need to copy/paste qualifying range of cells instead of entire rows

    You are very welcome.

+ 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. [SOLVED] Copy & Paste Entire Range
    By UAL225 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-01-2019, 03:36 PM
  2. Filter range, copy range (not entire column), paste in another worksheet
    By LukeNZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2018, 08:28 AM
  3. Replies: 0
    Last Post: 09-17-2017, 06:30 PM
  4. If cells match from one worksheet to another, copy / paste entire column.
    By iracknback in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 12-05-2016, 11:19 AM
  5. Copy/Paste Range Several Times while changing a few cells in 1-2 rows
    By smiket in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-04-2015, 04:00 PM
  6. Search for specific date range, copy entire row and paste to new worksheet
    By turias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-04-2013, 03:57 PM
  7. vba to copy an entire row or a range and paste values to next available row
    By bouncer84 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2012, 04:56 AM

Tags for this Thread

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