+ Reply to Thread
Results 1 to 15 of 15

Pasting Values on Visible cells only.

  1. #1
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Pasting Values on Visible cells only.

    Dear all,
    I have sheet1 and sheet2.
    Sheet1 has filtered cells/rows (Out of 2000 cells, only 200 are visible).

    I am copying equal number of rows i;e 200 from sheet2 (With some values) and trying to paste it against the visible 200 rows in sheet1 (Say in Column B).

    Because sheet1 is filtered, all 200 values doesnt get pasted in sheet1.

    Any solution to paste these values on visible 200 cells in sheet1??

    Thanks for your help.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Pasting Values on Visible cells only.

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Refer the attachment.
    In INPUT sheet, filter column C by 7 value, copy all the values below and try to paste it in B column..
    It will not replace 5 completly as it is filtered..(Refer OUTPUT sheet for sample)

    I want VBA code to replace 5 with 7 while pasting.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Still have queries or doubts about my requirement...?? Any updates plz..??

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Pasting Values on Visible cells only.

    Give it some time.......
    attaching workbooks to your original question would have saved a lot of time, and somebody would have started working on it right away.

  6. #6
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Sorry for that...I will wait..No problem..

  7. #7
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Dear all,
    Can anyone please confirm if anyone is working on my concern...??
    Thanks.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Pasting Values on Visible cells only.

    Here's 2 options, using a loop or using the filter.
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Thats awesome....Thank u very much... I am glad to be a part of this forum..

  10. #10
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Hi davesexcel,
    Plz find the attached sheet.

    Can you please provide me the code to paste all the random values from OUTPUT sheet, Column B:B onto INPUT Sheets Column B:B.?
    This is what my real scenario is...
    Please note, Input sheet as filtered values and there is not specific criteria of it.
    Attached Files Attached Files
    Last edited by mchilapur; 01-15-2015 at 09:09 AM.

  11. #11
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Pasting Values on Visible cells only.

    Quote Originally Posted by mchilapur View Post
    ......
    This is what my real scenario is...
    Please note, Input sheet as filtered values and there is not specific criteria of it.
    Your original question and the "real" question is not even close.

    Dealing with your real question!
    What is supposed to happen?

  12. #12
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Pasting Values on Visible cells only.

    Quote Originally Posted by mchilapur View Post
    Hi davesexcel,
    Plz find the attached sheet.

    Can you please provide me the code to paste all...........
    Hi mchilapur,

    ……. This is one Thread I have been following and learning from the supplied codes over the last couple of days.. (Thanks davesexcel)
    .
    …… despite this, I cannot make head or tail of exactly what You want….

    … How about

    . 1 ) cut your example data down to about 40 (We can see all that amount easily without scrolling up and down)

    . 2) Supply two workbooks.
    . One should have good representative data of all the typical scenarios
    . the other should simply look exactly as you want your first workbook to look like after running any code we give you, based on the actual example data you give us in the first workbook


    Alan

  13. #13
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    I agree its my mistake....Even I was thinking why didnt I post this question at the beginning itself... Heartfull sorry...
    Shall I post this request on new thread or shall I look forward for the answer here..??
    I will do as you say...Sorry again.

  14. #14
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Pasting Values on Visible cells only.

    Quote Originally Posted by mchilapur View Post
    I agree its my mistake.......
    Shall I post this request on new thread or shall I look forward for the answer here..??
    I will do as you say...Sorry again.
    Who are you talking to? Me (Alan) or Dave or Both.

    . I (Alan) am new here, but as I understand it: - ....

    . If you are asking something different from your original request, then ..
    ... YES - start a new thread BUT reference this one by including a link to this Thread. –

    . At the start of the Thread write something like……

    “This is a follow on from this Thread.:

    http://www.excelforum.com/excel-prog...ells-only.html

    …… etc etc.."



    . Whatever you do.... Attatch clear files as I (Alan) explained in post #12 .
    . - I still have no idea of exactly you want:
    . Remember “A picture paints a thousand words”
    - So simply show a Workbook how it looks Before and how it should then look After running any macro.

    . AND BE Patient. You have already had a lot of help which might have been wasted effort on Dave's behalf. Everyone works voluntarily here – you should not expect an answer too quickly. I will definitely do it for you tomorrow if no one else picks it up in the meantime but only if you provide the extra info I asked for. (And PM (Private Message) me if you do start a new Thread giving me the link to it – If you do not know how to do a PM , then check out the Forum Rules and FAQ (Click above on Forum Rules or FAQ) – you should do all that anyway before posting!!)

    Alan
    Last edited by Doc.AElstein; 01-16-2015 at 11:12 AM. Reason: Typo

  15. #15
    Forum Contributor
    Join Date
    09-20-2014
    Location
    India
    MS-Off Ver
    2013
    Posts
    275

    Re: Pasting Values on Visible cells only.

    Ok...Thanks 4 ur feedback...I will start a new thread shortly.
    I have marked this one as SOLVED.

    Below is the follow up thread:
    http://www.excelforum.com/excel-prog...-new-post.html
    Last edited by mchilapur; 01-17-2015 at 12:56 AM.

+ 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/Pasting Values from visible cells (using autofilter) to visible cells
    By evakotsi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2012, 07:49 AM
  2. Pasting to Visible Cells
    By Trying in forum Excel General
    Replies: 0
    Last Post: 01-24-2010, 08:39 PM
  3. pasting to visible cells only
    By snoozy71 in forum Excel General
    Replies: 1
    Last Post: 03-22-2009, 12:26 AM
  4. [SOLVED] Pasting in visible cells only
    By Howieben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2006, 04:00 PM
  5. [SOLVED] Pasting Visible Cells
    By LyndieBee in forum Excel General
    Replies: 1
    Last Post: 02-17-2006, 02:25 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