+ Reply to Thread
Results 1 to 12 of 12

Paste values only to visible rows

  1. #1
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Cool Paste values only to visible rows

    Hi All,

    I'm using VBA to copy and paste user selected cells from one workbook to another. The target workbook is filtered and I'm only pasting to the visible rows. The problem I'm having is I don't know how to make it so I'm only pasting the values. I don't want formulas, formats, etc. to be copied over to the target cells. It would be very much appreciated if you could add the fix to my existing code. I hope someone can help.

    Please Login or Register  to view this content.
    Last edited by alpharay; 09-12-2015 at 12:37 AM.

  2. #2
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Paste values only to visable rows

    Hii Welcome to forum... Please update your code as per forum rule 3..

    http://www.excelforum.com/forum-rule...rum-rules.html
    Don`t care, take care...

    Regards,
    Mangesh

  3. #3
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Re: Paste values only to visable rows

    Done...Thanks

  4. #4
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Paste values only to visible rows

    Combination of both http://www.mrexcel.com/forum/excel-q...ells-only.html and http://www.extendoffice.com/document...ble-cells.html

    here is code as per you requirement
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Re: Paste values only to visible rows

    Thanks for your time, unfortunately this code does not work for me. I copy say 5 rows and it pastes everything into one column in the target workbook. It also pastes all the formatting. I just want the values. My original code works great. I just need to make it somehow just paste values. Thanks.

  6. #6
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Paste values only to visible rows

    Hiii Try this one which will paste only values
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Thumbs up Re: Paste values only to visible rows

    Hiii Try this one which will paste only values
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Re: Paste values only to visible rows

    So yes, it's pasting only values now, which is great. But it's still pasting everything into one column. Also when my target workbook is filtered, it stops at the first hidden row. By the way, I'm using Excel 2013 version, which my have something to do with that. Again, if my original code could be changed to paste only values, it would be a perfect world. Thanks again.

  9. #9
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Paste values only to visible rows

    I think your code not giving correct results... but if you want to go with it then try this


    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Re: Paste values only to visible rows

    Hi Mangesh,

    Thank you for last response. The code works perfectly.

  11. #11
    Registered User
    Join Date
    09-11-2015
    Location
    Santa Ana. CA
    MS-Off Ver
    2013
    Posts
    6

    Re: Paste values only to visible rows

    Hi Mangesh,

    Thank you for your last response. The code works perfectly.
    Last edited by alpharay; 09-16-2015 at 10:33 PM. Reason: SOLVED

  12. #12
    Valued Forum Contributor mangesh.mehendale's Avatar
    Join Date
    06-04-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    510

    Re: Paste values only to visible rows

    If done mark this thread as solved see at top(in Thread Tools)...

    Also hit on "Add Reputation" to the answer if someone help you in this forum....

+ 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 and Paste VISIBLE rows not hidden
    By booney440 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-09-2015, 08:03 AM
  2. Replies: 3
    Last Post: 04-09-2015, 07:42 PM
  3. Replies: 4
    Last Post: 01-27-2015, 10:48 PM
  4. Replies: 3
    Last Post: 04-11-2013, 04:13 AM
  5. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  6. Copy Visible cells and paste values only to visible target cells
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2010, 04:09 AM
  7. Resize Visible Rows based only on Visible Columns text
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2009, 10:55 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