+ Reply to Thread
Results 1 to 8 of 8

Copy Visible cells and paste values only to visible target cells

  1. #1
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Copy Visible cells and paste values only to visible target cells

    I have users that copy cells from a source sheet (sometimes hidden columns) and paste to another sheet (different workbooks usually).

    Sometimes the destination sheet will contain hidden columns (not necessarily the same hiddden columns configuration as the source).

    I would like to have an event in the destination sheet to paste the source visible cells values only to the visible cells in the destination sheet.

    So what you see (visible cell values in the source) is what you get (values in visible cells) in the destination sheet.
    So as not to corrupt/overwrite destination cell formats & validation, and have source values paste into hidden destination cells.

    Any assistance would be appreciated

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Copy Visible cells and paste values only to visible target cells

    AFAIK, you can copy visible cells only but you can't paste to visible cells only, i.e. skipping the hidden cells. Paste will always work as one block, starting from the first cell.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copy Visible cells and paste values only to visible target cells

    I agree with Teylyn
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Copy Visible cells and paste values only to visible target cells

    Nevertheless you could consider:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-13-2024
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    2

    Re: Copy Visible cells and paste values only to visible target cells

    Heres my take

    This works for a range selection, NOT a column

    Please Login or Register  to view this content.
    Last edited by Shummi; 09-17-2024 at 07:46 AM.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,811

    Re: Copy Visible cells and paste values only to visible target cells

    Thanks. I hope you realised that the thread is fourteen years old ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    09-13-2024
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    2

    Re: Copy Visible cells and paste values only to visible target cells

    I know, but it came up when i looked for a solution

    I tried to write this in the reply, but i get this error "You are not allowed to post any kinds of links, images or videos until you post a few times."
    i then edited this post, then i worked
    i tried to contact "you" through admin at excelforum.com, but the mail came back, could not deliver

    I also neede to replace the at sign
    Last edited by Shummi; 09-18-2024 at 03:35 AM.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Copy Visible cells and paste values only to visible target cells

    You need at least 5 posts before the system will let you post files (for spam purposes)

    Also, if you are asking a question based on this thread, please start your own and reference this 1 if you feel necessary
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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